1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-29 10:18:30 +00:00

- Attempt to fix build on systems without gcc (error was:

- Stageify.
- No longer silence post-* targets.
This commit is contained in:
Matthias Andree 2014-01-03 01:00:05 +00:00
parent c0d7b638ed
commit e919812c71
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338512
4 changed files with 25 additions and 11 deletions

View File

@ -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>

View File

@ -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

View File

@ -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=""

View File

@ -1,4 +1,6 @@
bin/bmf
bin/bmfconv
man/man1/bmf.1.gz
man/man1/bmfconv.1.gz
%%DATADIR%%/README
@dirrm %%DATADIR%%