From c1be40e28f1e55a51fc05a01d165be3d18de0641 Mon Sep 17 00:00:00 2001 From: Charles McGarvey Date: Thu, 18 Mar 2010 03:37:52 -0600 Subject: [PATCH] beginning netbsd packaging script --- Makefile.am | 9 ++++++++- configure.ac | 18 +++++++++--------- 2 files changed, 17 insertions(+), 10 deletions(-) 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") # -- 2.45.2