From: Charles McGarvey Date: Thu, 18 Mar 2010 09:37:52 +0000 (-0600) Subject: beginning netbsd packaging script X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=c1be40e28f1e55a51fc05a01d165be3d18de0641;p=chaz%2Fyoink beginning netbsd packaging script --- diff --git a/Makefile.am b/Makefile.am index 36d5fab..ad01621 100644 --- a/Makefile.am +++ b/Makefile.am @@ -3,7 +3,7 @@ ACLOCAL_AMFLAGS = -I m4 SUBDIRS = data doc src -EXTRA_DIST = autogen.sh extra +EXTRA_DIST = autogen.sh .PHONY: run debug docs portable installer @@ -28,6 +28,13 @@ debug: all endif +if NETBSD + +package: all + $(SH) arch/netbsd/makepackage.sh + +endif + docs: $(DOXYGEN) diff --git a/configure.ac b/configure.ac index dec2520..6ba6e54 100644 --- a/configure.ac +++ b/configure.ac @@ -38,26 +38,26 @@ AC_SUBST(DOXYGEN) case "${host}" in *mingw32*) - MINGW32=yes WIN32=yes - AC_PATH_PROGS([WINDRES], [windres $host_alias-windres $host_os-windres]) + AC_PATH_PROGS([MAKENSIS], [makensis]) + AC_PATH_PROGS([WINDRES], + [windres $host_alias-windres $host_os-windres]) if test "x$WINDRES" = x then AC_MSG_ERROR([windres could not be found]) fi - AC_PATH_PROGS([MAKENSIS], [makensis]) - ;; - *cygwin*) - CYGWIN=yes - WIN32=yes ;; *-apple-darwin*) MACOSX=yes - LIBS="$LIBS -Wl,-framework" + ;; + *netbsd*) + NETBSD=yes + AC_PATH_PROGS([PKGLINT], [pkglint]) ;; esac -AM_CONDITIONAL([WIN32], test "$WIN32" = "yes") +AM_CONDITIONAL([WIN32], test "$WIN32" = "yes") +AM_CONDITIONAL([NETBSD], test "$NETBSD" = "yes") #