#!/usr/bin/perl # autopkg.conf - i'm lazy! just edit it for pete's sake! :-P # Copyright (C) 2003-2004 Peter Willis # this is a perl script, so make sure the syntax is correct! each line must # end with a semicolon and each variable must start with a dollar sign. when # assigning values to variables make sure and enclose the value in single or # double quotes. anything following a pound sign that isn't in quotes is a # comment. # NOTE: if you don't want a BUILDDIR or PACKAGESDIR, please comment them out. # this is an array; entries are put inside parenthesis separated by commas. # example: @{$CONF{CAN_INSTALL_PACKAGES}} = ("user1", "user2", "root"); @{$CONF{CAN_INSTALL_PACKAGES}} = ("root"); $CONF{DATADIR} = "/usr/share"; $CONF{HINTS} = "$CONF{DATADIR}/autopkg.pl/hints"; $CONF{DEFAULTS} = "$CONF{DATADIR}/autopkg.pl/defaults"; $CONF{TMP} = "/tmp"; # mostly just used for hint file execution #$CONF{BUILDDIR} = "$CONF{TMP}/autopkg.pl/build"; #$CONF{PACKAGESDIR} = "$CONF{TMP}/autopkg.pl/packages"; # WARNING: these two options can break certain programs and libraries #$CONF{STRIP_BINS} = "1"; #$CONF{STRIP_LIBS} = "1"; # NOTE: this variable is a command that should pipe data to a specific # command in the build process. it should therefore typically not ask # for any user data and feed any required information via a pipe at # the end of this variable, like the example below. # this will affect _PRE_CMDS and _POST_CMDS programs as well. # if $PKG{FEED_TO_PROGRAM} is not set, all programs run by autopkg.pl # will use the default "cat /dev/null | ". #$PKG{FEED_TO_PROGRAM} = "cat /dev/null | "; #$PKG{FEED_TO_Makefile.PL} = $PKG{FEED_TO_PROGRAM}; #$PKG{FEED_TO_autogen} = $PKG{FEED_TO_PROGRAM}; #$PKG{FEED_TO_make} = $PKG{FEED_TO_PROGRAM}; #$PKG{FEED_TO_makeinstall} = $PKG{FEED_TO_PROGRAM}; # Set to "0" if you want to try to run configure for a perl module. $PKG{NO_CONFIGURE_ON_MODULES} = "1"; # General automake/autoconf settings $PKG{PREFIX} = "/usr"; $PKG{EPREFIX} = $PKG{PREFIX}; $PKG{BINDIR} = "$PKG{EPREFIX}/bin"; $PKG{SBINDIR} = "$PKG{EPREFIX}/sbin"; $PKG{LIBEXECDIR} = "$PKG{EPREFIX}/libexec"; $PKG{DATADIR} = "$PKG{PREFIX}/share"; #$PKG{SYSCONFDIR} = "$PKG{PREFIX}/etc"; $PKG{SYSCONFDIR} = "/etc"; $PKG{SHAREDSTATEDIR} = "$PKG{PREFIX}/com"; #$PKG{LOCALSTATEDIR} = "$PKG{PREFIX}/var"; $PKG{LOCALSTATEDIR} = "/var"; $PKG{LIBDIR} = "$PKG{EPREFIX}/lib"; $PKG{INCLUDEDIR} = "$PKG{PREFIX}/include"; $PKG{OLDINCLUDEDIR} = "/usr/include"; $PKG{INFODIR} = "$PKG{PREFIX}/info"; $PKG{MANDIR} = "$PKG{PREFIX}/man"; $PKG{PROGRAMPREFIX} = ""; $PKG{PROGRAMSUFFIX} = ""; $PKG{PROGRAMTRANSFORMNAME} = ""; $PKG{ARCH} = "i486"; $PKG{CPU} = "i686"; $PKG{OPTIMIZE} = "-O2"; # might be better just to comment these two out $PKG{BUILD} = "$PKG{ARCH}-linux-gnu"; $PKG{HOST} = $PKG{BUILD}; #$PKG{TARGET} = $PKG{HOST}; # don't use this unless you need it $PKG{DISABLEDEPENDENCYTRACKING} = ""; $PKG{ENABLEDEPENDENCYTRACKING} = ""; $PKG{ENABLESTATIC} = ""; $PKG{ENABLESHARED} = ""; $PKG{ENABLEFASTINSTALL} = ""; $PKG{DISABLELIBTOOLLOCK} = ""; #$PKG{CC} = "gcc"; $PKG{CFLAGS} = "-march=$PKG{ARCH} -mcpu=$PKG{CPU} $PKG{OPTIMIZE}"; #$PKG{LDFLAGS} = ""; #$PKG{CPP} = ""; #$PKG{CPPFLAGS} = ""; #$PKG{CXX} = "g++"; $PKG{CXXFLAGS} = $PKG{CFLAGS}; 1;