aboutsummaryrefslogtreecommitdiff
path: root/audio
diff options
context:
space:
mode:
authorMartin Wilke <miwi@FreeBSD.org>2014-01-19 13:47:56 +0000
committerMartin Wilke <miwi@FreeBSD.org>2014-01-19 13:47:56 +0000
commit890156c9765a2866e51378a19aad04c81c2aaefa (patch)
tree12ebda49d797555de163224ba287060a205895be /audio
parentc1082e00056e43a468cd6143fde221192a5037b1 (diff)
downloadports-890156c9765a2866e51378a19aad04c81c2aaefa.tar.gz
ports-890156c9765a2866e51378a19aad04c81c2aaefa.zip
Notes
Diffstat (limited to 'audio')
-rw-r--r--audio/bmp-mac/Makefile28
-rw-r--r--audio/bmp-mac/files/patch-configure.in9
2 files changed, 22 insertions, 15 deletions
diff --git a/audio/bmp-mac/Makefile b/audio/bmp-mac/Makefile
index b582d2b6733f..d8ff933ad99c 100644
--- a/audio/bmp-mac/Makefile
+++ b/audio/bmp-mac/Makefile
@@ -12,23 +12,27 @@ DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Monkey's Audio Codec non-win32 port
-LIB_DEPENDS= libbeep.so:${PORTSDIR}/multimedia/beep-media-player \
- libmac.so:${PORTSDIR}/audio/mac
+LIB_DEPENDS= libmac.so:${PORTSDIR}/audio/mac \
+ libbeep.so:${PORTSDIR}/multimedia/beep-media-player
USES= gmake pkgconfig
-GNU_CONFIGURE= yes
-USE_AUTOTOOLS= autoconf libtool
-CPPFLAGS+= "-I${LOCALBASE}/include"
-PLUGDIR= lib/bmp/Input
-PLUGFILE= lib${PKGNAMEPREFIX}${PORTNAME}.so
-PLIST_FILES= ${PLUGDIR}/${PLUGFILE}
+USE_AUTOTOOLS= libtoolize aclocal automake autoconf
+LIBTOOLIZE_ARGS=--force --copy
+AUTOMAKE_ARGS= --add-missing --copy
+
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+PLIST_FILES= lib/bmp/Input/libbmp-mac.so
post-patch:
- @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
- 's|-D.*_DISABLE_DEPRECATED||g'
+ @${REINPLACE_CMD} -e \
+ 's|-D.*_DISABLE_DEPRECATED|| ; \
+ s|@BMP_LIBS@|@GTK_LIBS@|' ${WRKSRC}/src/Makefile.am
do-install:
- @${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGDIR}
- ${INSTALL_LIB} ${WRKSRC}/src/.libs/${PLUGFILE} ${STAGEDIR}${PREFIX}/${PLUGDIR}/
+ @${MKDIR} ${STAGEDIR}${PREFIX}/lib/bmp/Input
+ (cd ${WRKSRC}/src/.libs && ${INSTALL_LIB} libbmp-mac.so \
+ ${STAGEDIR}${PREFIX}/lib/bmp/Input)
.include <bsd.port.mk>
diff --git a/audio/bmp-mac/files/patch-configure.in b/audio/bmp-mac/files/patch-configure.in
index 142f4fc6431e..d59d458a3e57 100644
--- a/audio/bmp-mac/files/patch-configure.in
+++ b/audio/bmp-mac/files/patch-configure.in
@@ -1,11 +1,14 @@
--- configure.in.orig Tue Jan 17 23:49:11 2006
+++ configure.in Tue Jan 17 23:49:55 2006
-@@ -62,7 +62,7 @@
+@@ -62,9 +62,9 @@
AC_CHECK_LIB(mac, DecompressFile, [])
-#MAC_LIBS="-lmac"
-+MAC_LIBS="-lmac -lpthread"
++MAC_LIBS="-lmac -pthread"
#MAC_INCLUDES="-I/usr/include/mac"
- MAC_CXXFLAGS="-s -O3 -Wall -pedantic -DBUILD_CROSS_PLATFORM"
+-MAC_CXXFLAGS="-s -O3 -Wall -pedantic -DBUILD_CROSS_PLATFORM"
++MAC_CXXFLAGS="-DBUILD_CROSS_PLATFORM"
+ AC_SUBST(MAC_LIBS)
+ AC_SUBST(MAC_CXXFLAGS)