diff options
Diffstat (limited to 'audio/xmms-modplug')
-rw-r--r-- | audio/xmms-modplug/Makefile | 20 | ||||
-rw-r--r-- | audio/xmms-modplug/files/patch-modplugxmms__modplugxmms.h | 10 |
2 files changed, 21 insertions, 9 deletions
diff --git a/audio/xmms-modplug/Makefile b/audio/xmms-modplug/Makefile index 7bc463a08ce6..59958cd95ca4 100644 --- a/audio/xmms-modplug/Makefile +++ b/audio/xmms-modplug/Makefile @@ -12,21 +12,23 @@ DISTNAME= ${PORTNAME}${PKGNAMEPREFIX}2.05 MAINTAINER= ports@FreeBSD.org COMMENT= ModPlug-based plugin for XMMS -LIB_DEPENDS?= libxmms.so:${PORTSDIR}/multimedia/xmms -LIB_DEPENDS+= modplug:${PORTSDIR}/audio/libmodplug +BUILD_DEPENDS= xmms>0:${PORTSDIR}/multimedia/xmms +LIB_DEPENDS= libmodplug.so:${PORTSDIR}/audio/libmodplug +RUN_DEPENDS= xmms>0:${PORTSDIR}/multimedia/xmms USES= pkgconfig -NO_STAGE= yes +USE_AUTOTOOLS= libtool USE_LDCONFIG= yes -HAS_CONFIGURE= yes -PLUGDIR?= lib/xmms/Input -PLIST_FILES= ${PLUGDIR}/libmodplugxmms.so + +PLIST_FILES= lib/xmms/Input/libmodplugxmms.so post-patch: - @${REINPLACE_CMD} -e '/objformat=/s|=.*|=elf|' ${WRKSRC}/configure + @${REINPLACE_CMD} -e \ + 's|-lstdc++||' ${WRKSRC}/modplugxmms/Makefile.in do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/modplugxmms/.libs/libmodplugxmms.so \ - ${PREFIX}/${PLUGDIR} + @${MKDIR} ${STAGEDIR}${PREFIX}/lib/xmms/Input + (cd ${WRKSRC}/modplugxmms/.libs && ${INSTALL_LIB} libmodplugxmms.so \ + ${STAGEDIR}${PREFIX}/lib/xmms/Input) .include <bsd.port.mk> diff --git a/audio/xmms-modplug/files/patch-modplugxmms__modplugxmms.h b/audio/xmms-modplug/files/patch-modplugxmms__modplugxmms.h new file mode 100644 index 000000000000..2a3a1a3822f4 --- /dev/null +++ b/audio/xmms-modplug/files/patch-modplugxmms__modplugxmms.h @@ -0,0 +1,10 @@ +--- modplugxmms/modplugxmms.h.orig ++++ modplugxmms/modplugxmms.h +@@ -8,6 +8,7 @@ + #define __MODPLUGXMMS_CMODPLUGXMMS_H_INCLUDED__ + + #include <string> ++#include <pthread.h> + + #ifndef __MODPLUGXMMS_STDDEFS_H__INCLUDED__ + #include "stddefs.h" |