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 | 8e138995d49c4a183dabc714c28956139762b946 (patch) | |
tree | 4b4665ef37247fa99af92f101f302e10139db2b5 /audio/adplug | |
parent | 4d06daf4dc2100d53f3cf3a18264231c5c9585d9 (diff) | |
download | pkgsrc-8e138995d49c4a183dabc714c28956139762b946.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" |