summaryrefslogtreecommitdiff
path: root/sysutils/mc/Makefile.common
diff options
context:
space:
mode:
authorjlam <jlam>2000-10-19 23:31:15 +0000
committerjlam <jlam>2000-10-19 23:31:15 +0000
commit7fe06aaa01ee1d048487734ad1284420b353453d (patch)
tree4d63cd2f9f976777f1add99180af31a35fb58d89 /sysutils/mc/Makefile.common
parent74c5640572ea7c7af6ef25ad1273c581d9bf15f7 (diff)
downloadpkgsrc-7fe06aaa01ee1d048487734ad1284420b353453d.tar.gz
Update {g,}mc to 0.4.51. This is a maintenance release from version 0.4.50
and has no list of changes. Restructure packages to use a common Makefile and patch directory. Set the maintainer to me, as this is a non-trivial change. Compile in the samba vfs code.
Diffstat (limited to 'sysutils/mc/Makefile.common')
-rw-r--r--sysutils/mc/Makefile.common56
1 files changed, 56 insertions, 0 deletions
diff --git a/sysutils/mc/Makefile.common b/sysutils/mc/Makefile.common
new file mode 100644
index 00000000000..08e2f289974
--- /dev/null
+++ b/sysutils/mc/Makefile.common
@@ -0,0 +1,56 @@
+# $NetBSD: Makefile.common,v 1.1 2000/10/19 23:31:17 jlam Exp $
+
+DISTNAME= mc-4.5.51
+CATEGORIES+= sysutils
+MASTER_SITES+= ${MASTER_SITE_GNOME:=stable/sources/mc/}
+
+MAINTAINER= jlam@netbsd.org
+HOMEPAGE= http://www.gnome.org/mc/
+
+DEPENDS+= libslang-*:../../devel/libslang
+DEPENDS+= glib>=1.2.0:../../devel/glib
+
+CONFLICTS+= mc-* gmc-*
+
+FILESDIR= ${.CURDIR}/../../sysutils/mc/files
+PATCHDIR= ${.CURDIR}/../../sysutils/mc/patches
+
+PLIST_SUBST+= LOCALEBASE=${LOCALEBASE}
+
+USE_GMAKE= # defined
+
+GNU_CONFIGURE= # defined
+CONFIGURE_ARGS+= --without-included-gettext
+CONFIGURE_ARGS+= --with-netrc --with-slang
+CONFIGURE_ARGS+= --with-samba
+CONFIGURE_ARGS+= --without-tk
+
+# Don't pick up readline if it's installed in the build environment.
+#
+CONFIGURE_ENV+= ac_cv_header_history_h=no
+CONFIGURE_ENV+= ac_cv_header_readline_h=no
+CONFIGURE_ENV+= ac_cv_header_readline_history_h=no
+CONFIGURE_ENV+= ac_cv_header_readline_readline_h=no
+
+CONFIGURE_ENV+= LOCALBASE="${LOCALBASE}"
+CONFIGURE_ENV+= LOCALEBASE="${LOCALEBASE}"
+CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
+CONFIGURE_ENV+= LIBS="${LIBS}"
+
+LIBS+= -lm -ltermcap # -lslang
+LIBS+= -lintl # check for gettext is broken
+CPPFLAGS+= -I${LOCALBASE}/include # slang.h
+
+.include "../../mk/bsd.prefs.mk"
+
+# The directory in which locale files are found is:
+#
+# ${PREFIX}/${LOCALEBASE}/locale/<lang>/LC_MESSAGES
+#
+.if ${OPSYS} == "SunOS"
+LOCALEBASE= lib
+.else
+LOCALEBASE= share
+.endif
+
+.include "../../mk/bsd.pkg.mk"