aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mail/bmf/Makefile12
-rw-r--r--mail/bmf/files/patch-Makefile.in4
-rw-r--r--mail/bmf/files/patch-configure18
-rw-r--r--mail/bmf/pkg-plist2
4 files changed, 25 insertions, 11 deletions
diff --git a/mail/bmf/Makefile b/mail/bmf/Makefile
index 6e68feb32408..10abf2b60631 100644
--- a/mail/bmf/Makefile
+++ b/mail/bmf/Makefile
@@ -15,7 +15,6 @@ OPTIONS_DEFAULT= BDB
BDB_DESC= Berkeley DB support (may specify w/ WITH_BDB_VER)
MYSQL_DESC= Adds MySQL Support
-NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MBDB}
@@ -34,16 +33,19 @@ CONFIGURE_ARGS+=--with-mysql
HAS_CONFIGURE= yes
CONFIGURE_ARGS+= --without-package
+NEED_ROOT= yes
.if ${PORT_OPTIONS:MDEBUG}
CONFIGURE_ARGS+= --debug=yes
.endif
-MAN1= bmf.1 bmfconv.1
+post-patch:
+ ${REINPLACE_CMD} -e 's/@@CC/${CC}/;s/@@CXX/${CXX}/' ${WRKSRC}/configure
post-install:
- @ ${MKDIR} ${PREFIX}/share/bmf
- @ ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/bmf
- @ ${CAT} ${PKGDIR}/pkg-message
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bmf
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/bmfconv
+ ${MKDIR} ${STAGEDIR}${PREFIX}/share/bmf
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${PREFIX}/share/bmf
.include <bsd.port.mk>
diff --git a/mail/bmf/files/patch-Makefile.in b/mail/bmf/files/patch-Makefile.in
index 49a99e1742c6..cbc40b2466f2 100644
--- a/mail/bmf/files/patch-Makefile.in
+++ b/mail/bmf/files/patch-Makefile.in
@@ -1,5 +1,5 @@
---- Makefile.in.orig 2002-10-21 04:27:56.000000000 +0800
-+++ Makefile.in 2011-09-28 14:53:25.000000000 +0800
+--- ./Makefile.in.orig 2002-10-20 22:27:56.000000000 +0200
++++ ./Makefile.in 2014-01-03 01:50:13.000000000 +0100
@@ -1,11 +1,11 @@
# Makefile for bmf
diff --git a/mail/bmf/files/patch-configure b/mail/bmf/files/patch-configure
index fcc2f62d900a..8cef82f1c790 100644
--- a/mail/bmf/files/patch-configure
+++ b/mail/bmf/files/patch-configure
@@ -1,10 +1,20 @@
---- configure.orig Fri Apr 4 14:07:12 2003
-+++ configure Fri Apr 4 14:08:48 2003
-@@ -134,9 +134,9 @@
+--- ./configure.orig 2002-10-19 11:44:49.000000000 +0200
++++ ./configure 2014-01-03 01:50:13.000000000 +0100
+@@ -127,16 +127,16 @@
+ CCDBG="-DNDEBUG"
+ LDDBG=""
+ fi
+- CC=gcc
++ CC=@@CC
+ CFLAGS="$CCDBG -D_UNIX -D_BSD=$OSVER -Wall"
+- CXX=g++
++ CXX=@@CXX
+ CXXFLAGS=${CFLAGS}
AR=ar
ARFLAGS="-rc"
- LD=gcc
+- LD=gcc
- LDFLAGS="$LDDBG"
++ LD=@@CC
+ LDFLAGS="${LDFLAGS}"
SYSLIBS=""
- LIBDB_LIB=""
diff --git a/mail/bmf/pkg-plist b/mail/bmf/pkg-plist
index 1e4167839488..5d86155f057e 100644
--- a/mail/bmf/pkg-plist
+++ b/mail/bmf/pkg-plist
@@ -1,4 +1,6 @@
bin/bmf
bin/bmfconv
+man/man1/bmf.1.gz
+man/man1/bmfconv.1.gz
%%DATADIR%%/README
@dirrm %%DATADIR%%