Commit d513175d authored by danigm's avatar danigm

Initial commit structure

parents
Daniel Garcia Moreno <danigm@wadobo.com>
This diff is collapsed.
Daniel Garcia Moreno
E-mail: danigm@wadobo.com
Userid: danigm
SUBDIRS = libgepub
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libgepub.pc
EXTRA_DIST = \
$(pkgconfig_DATA).in
DISTCLEANFILES = \
$(pkgconfig_DATA)
What is libgepub
================
libgepub is a GObject based library for handling and rendering epub
documents.
libgepub is free software; you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published
by the Free Software Foundation; either version 2.1 of the License, or
(at your option) any later version.
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="libgepub"
(test -f $srcdir/configure.ac) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}
which gnome-autogen.sh || {
echo "You need to install gnome-common from the GNOME Git"
exit 1
}
REQUIRED_AUTOMAKE_VERSION=1.10
REQUIRED_GTK_DOC_VERSION=1.13
USE_GNOME2_MACROS=1
. gnome-autogen.sh
AC_PREREQ(2.60)
AC_INIT([libgxps],[0.0.1],[danigm@wadobo.com])
AC_CONFIG_AUX_DIR([build])
AM_INIT_AUTOMAKE([1.10 -Wall -Werror dist-bzip2])
GNOME_COMMON_INIT
AC_PROG_CC
# Compiling sources with per-target flags requires AM_PROG_CC_C_O
AM_PROG_CC_C_O
AC_PROG_INSTALL
AC_PROG_LIBTOOL
PKG_CHECK_MODULES(GEPUB,
glib-2.0
gobject-2.0
gio-2.0
cairo
libarchive)
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([
Makefile
libgepub.pc
libgepub/Makefile
tests/Makefile
])
AC_OUTPUT
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
includedir=@includedir@
Name: libgepub
Description: epub Documents library
Version: @VERSION@
Requires: glib-2.0 gobject-2.0 gio-2.0 cairo libarchive
Libs: -L${libdir} -lgepub
Cflags: -I${includedir}
lib_LTLIBRARIES = libgepub.la
INST_H_FILES = \
gepub.h
libgepubincludedir = $(includedir)/libgepub
libgepubinclude_HEADERS = $(INST_H_FILES)
libgepub_la_SOURCES = \
gepub.c \
$(INST_H_FILES)
libgepub_la_CPPFLAGS = \
-I$(top_builddir) \
-I$(srcdir) \
-I$(top_srcdir) \
$(AM_CPPFLAGS)
libgepub_la_CFLAGS = \
$(WARN_CFLAGS) \
$(AM_CFLAGS)
libgepub_la_LDFLAGS = \
-no-undefined \
-export-symbols-regex "^gepub_*" \
$(AM_LDFLAGS)
libgepub_la_LIBADD = \
$(GEPUB_LIBS)
#include <stdio.h>
#include "gepub.h"
int
gepub ()
{
printf ("gepub called\n");
return 1;
}
#ifndef _GEPUB__H_
#define _GEPUB__H_
int gepub ();
#endif
noinst_PROGRAMS = test-gepub
test_gepub_SOURCES = test-gepub.c
test_gepub_CPPFLAGS = \
-I$(top_srcdir) \
-I$(top_srcdir)/libgepub \
$(AM_CPPFLAGS)
test_gepub_CFLAGS = \
$(GTK_CFLAGS) \
$(WARN_CFLAGS) \
$(AM_CFLAGS)
test_gepub_LDADD = \
$(top_builddir)/libgepub/libgepub.la \
$(GTK_LIBS)
#include <stdio.h>
#include <libgepub/gepub.h>
int
main (int argc, char **argv)
{
printf ("doing nothing\n");
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment