summaryrefslogtreecommitdiff
path: root/audio/adplug
diff options
context:
space:
mode:
authormarino <marino>2011-11-20 01:26:58 +0000
committermarino <marino>2011-11-20 01:26:58 +0000
commit0d8a3547fb0023aa402309a9995d918bfb289a4a (patch)
tree4b4665ef37247fa99af92f101f302e10139db2b5 /audio/adplug
parent11e9f10685cf02d0f30d35860536c98d4d1b9fc7 (diff)
downloadpkgsrc-0d8a3547fb0023aa402309a9995d918bfb289a4a.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"