--- Makefile.conf.orig 2016-03-09 19:17:01 UTC +++ Makefile.conf @@ -28,47 +28,55 @@ SYSTEM_TYPE ?= debian LATEX_FREE=0 +GCC=$(CC) +GCC_PP=$(CXX) +CFLAGS = -O2 -I%%LOCALBASE%%/include -I. -DNEEDS_GETLINE +CXXFLAGS = -O2 -I%%LOCALBASE%%/include -I. -DNEEDS_GETLINE +LDFLAGS += -L%%LOCALBASE%%/lib + # INSTALLATION : where to install parts of the package ? # directory for executable -BINDIR=/usr/bin +BINDIR=%%PREFIX%%/bin # directory for perl modules -PERLDIR=/usr/share/perl5 +PERLDIR=%%PREFIX%%/%%SITE_PERL_REL%% # directory for some AMC executables, not to be used by end-user -MODSDIR=/usr/lib/AMC +MODSDIR=%%PREFIX%%/lib/AMC # directory for LaTeX style file -TEXDIR=/usr/share/texmf/tex/latex/AMC +TEXDIR=%%PREFIX%%/%%TEXMFLOCALDIR%%/tex/latex/AMC # directory for LaTeX doc -TEXDOCDIR=/usr/share/doc/texmf/AMC/ +TEXDOCDIR=%%PREFIX%%/%%TEXMFLOCALDIR%%/doc/latex/AMC/ # directory for man (1) files -MAN1DIR=/usr/share/man/man1 +MAN1DIR=%%MANPREFIX%%/man/man1 +FRMAN1DIR=%%MANPREFIX%%/man/fr/man1 +JAMAN1DIR=%%MANPREFIX%%/man/ja/man1 # directory for desktop file -DESKTOPDIR=/usr/share/applications +DESKTOPDIR=%%PREFIX%%/share/applications # directory for icons (svg) -ICONSDIR=/usr/share/auto-multiple-choice/icons +ICONSDIR=%%DATADIR%%/icons # directory for icons (xpm) -PIXDIR=/usr/share/pixmaps +PIXDIR=%%PREFIX%%/share/pixmaps # directory for locales (MO files will be put in # $(LOCALEDIR)/fr/LC_MESSAGES for example) -LOCALEDIR=/usr/share/locale +LOCALEDIR=%%PREFIX%%/share/locale # directory for AMC packaged models -MODELSDIR=/usr/share/auto-multiple-choice/models +MODELSDIR=%%DATADIR%%/models # directory for documentation (will use html/auto-multiple-choice.* subdirs for HTML docs) -DOCDIR=/usr/share/doc/auto-multiple-choice-doc +DOCDIR=%%DOCSDIR%% # directory for Shared MIME-info Database -SHARED_MIMEINFO_DIR=/usr/share/mime/packages +SHARED_MIMEINFO_DIR=%%SHARED_MIMEINFO_DIR%% # directory for gtksourceview/gedit languages highlighting syntax -LANG_GTKSOURCEVIEW_DIR=/usr/share/gtksourceview-3.0/language-specs +LANG_GTKSOURCEVIEW_DIR=%%LANG_GTKSOURCEVIEW_DIR%% # BUILD : where to find some files used for building AMC ? # URLs can be used if XML catalogs are present. -#DOCBOOK_MAN_XSL=/usr/share/xml/docbook/stylesheet/nwalsh/manpages/docbook.xsl +#DOCBOOK_MAN_XSL=%%LOCALBASE%%/share/xsl/docbook/manpages/docbook.xsl DOCBOOK_MAN_XSL=http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl -#DOCBOOK_XHTML_XSL=/usr/share/xml/docbook/stylesheet/nwalsh/xhtml/chunk.xsl +#DOCBOOK_XHTML_XSL=%%LOCALBASE%%/share/xsl/docbook/xhtml/chunk.xsl DOCBOOK_XHTML_XSL=http://docbook.sourceforge.net/release/xsl/current/xhtml/chunk.xsl -#DOCBOOK_DTD=/usr/share/xml/docbook/schema/dtd/4.5/docbookx.dtd +#DOCBOOK_DTD=%%LOCALBASE%%/share/xml/docbook/4.5/docbookx.dtd DOCBOOK_DTD=http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd # BUILD : options to compile with netpbm / opencv libraries @@ -83,7 +91,7 @@ DESKTOP_CAT=Education; # these arguments are not available with tar: use an empty # TAR_REPRODUCIBLE_ARGS -TAR_REPRODUCIBLE_ARGS=--owner=root --group=root --numeric-owner --mtime=@1451602800 +TAR_REPRODUCIBLE_ARGS=--owner=root --group=wheel --numeric-owner --mtime=@1451602800 # same for gzip @@ -92,7 +100,7 @@ GZIP_REPRODUCIBLE_ARGS=-n # INSTALL USER AND GROUP ifneq ($(SYSTEM_TYPE),rpm) -INSTALL_USER=root -INSTALL_GROUP=root +INSTALL_USER= +INSTALL_GROUP= endif