diff options
author | marino <marino@pkgsrc.org> | 2011-11-20 01:26:58 +0000 |
---|---|---|
committer | marino <marino@pkgsrc.org> | 2011-11-20 01:26:58 +0000 |
commit | c2508a72dafe236f3e7003aeff3af12312886ace (patch) | |
tree | 4b4665ef37247fa99af92f101f302e10139db2b5 /audio/adplug | |
parent | 67f39011522fe67c24bfe5625b350c60d92dd4c5 (diff) | |
download | pkgsrc-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/Makefile | 14 |
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" |