summaryrefslogtreecommitdiff
path: root/audio/adplug
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2011-11-20 01:26:58 +0000
committermarino <marino@pkgsrc.org>2011-11-20 01:26:58 +0000
commitc2508a72dafe236f3e7003aeff3af12312886ace (patch)
tree4b4665ef37247fa99af92f101f302e10139db2b5 /audio/adplug
parent67f39011522fe67c24bfe5625b350c60d92dd4c5 (diff)
downloadpkgsrc-c2508a72dafe236f3e7003aeff3af12312886ace.tar.gz
audio/adplug: Fix DragonFly breakage
This commit allows adplug to build on DragonFly without changing the binary package for any other platform, so no PKGREVISION bump is required.
Diffstat (limited to 'audio/adplug')
-rw-r--r--audio/adplug/Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/audio/adplug/Makefile b/audio/adplug/Makefile
index 1352f881531..b970bb57976 100644
--- a/audio/adplug/Makefile
+++ b/audio/adplug/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2008/06/20 01:09:05 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2011/11/20 01:26:58 marino Exp $
#
DISTNAME= adplug-2.1
@@ -21,5 +21,17 @@ INFO_FILES= yes
PKGCONFIG_OVERRIDE+= adplug.pc.in
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "DragonFly"
+USE_TOOLS+= perl
+.endif
+
+post-extract:
+.if ${OPSYS} == "DragonFly"
+ perl -i -pe "s/<string>/<strings.h>/" ${WRKSRC}/src/rol.h
+ perl -i -pe "s/<string>/<string.h>/" ${WRKSRC}/src/player.h
+.endif
+
.include "../../devel/libbinio/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"