diff options
author | flz <flz@FreeBSD.org> | 2005-03-13 22:42:39 +0000 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2005-03-13 22:42:39 +0000 |
commit | ab0487d53f0e3151d2c621176e74d1c83f2129f8 (patch) | |
tree | 828f41ed582538dcfc5771456b10e9ba3ce4bb0c /devel/dumb | |
parent | 2fb831bca78b8a2d0f01c50a8c88e3350e53e611 (diff) | |
download | FreeBSD-ports-ab0487d53f0e3151d2c621176e74d1c83f2129f8.zip FreeBSD-ports-ab0487d53f0e3151d2c621176e74d1c83f2129f8.tar.gz |
- Add dumb 0.9.2, an IT, XM, S3M and MOD player library
PR: ports/78118
Submitted by: Andreas Kohn <andreas@syndrom23.de>
Diffstat (limited to 'devel/dumb')
-rw-r--r-- | devel/dumb/Makefile | 43 | ||||
-rw-r--r-- | devel/dumb/distinfo | 2 | ||||
-rw-r--r-- | devel/dumb/files/config.txt | 4 | ||||
-rw-r--r-- | devel/dumb/files/patch-Makefile | 16 | ||||
-rw-r--r-- | devel/dumb/pkg-descr | 3 | ||||
-rw-r--r-- | devel/dumb/pkg-plist | 8 |
6 files changed, 76 insertions, 0 deletions
diff --git a/devel/dumb/Makefile b/devel/dumb/Makefile new file mode 100644 index 0000000..f446cf1 --- /dev/null +++ b/devel/dumb/Makefile @@ -0,0 +1,43 @@ +# New ports collection makefile for: dumb +# Date created: 26 January 2005 +# Whom: Andreas Kohn <andreas@syndrom23.de> +# +# $FreeBSD$ +# + +PORTNAME= dumb +PORTVERSION= 0.9.2 +CATEGORIES= devel audio +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= dumb +DISTNAME= ${PORTNAME}-${PORTVERSION}-fixed + +MAINTAINER= andreas@syndrom23.de +COMMENT= IT, XM, S3M and MOD player library + +WRKSRC= ${WRKDIR}/dumb +USE_REINPLACE= yes +USE_GMAKE= yes + +.include <bsd.port.pre.mk> + +.if defined(WITH_ALLEGRO) +LIB_DEPENDS+= alleg.41:${PORTSDIR}/devel/allegro +PLIST_SUB+= ALLEGRO="" +.else +PLIST_SUB+= ALLEGRO="@comment " +.endif + +post-patch: + @${REINPLACE_CMD} -e "s,-O2,${CFLAGS}," ${WRKSRC}/Makefile + +pre-configure: + @${CP} ${FILESDIR}/config.txt ${WRKSRC}/make + @${REINPLACE_CMD} -e "s,@LOCALBASE@,${LOCALBASE}," ${WRKSRC}/make/config.txt +.if defined(WITH_ALLEGRO) + @${REINPLACE_CMD} -e "s,@ALLEGRO@,," ${WRKSRC}/make/config.txt +.else + @${REINPLACE_CMD} -e "s,@ALLEGRO@,#," ${WRKSRC}/make/config.txt +.endif + +.include <bsd.port.post.mk> diff --git a/devel/dumb/distinfo b/devel/dumb/distinfo new file mode 100644 index 0000000..6b97917 --- /dev/null +++ b/devel/dumb/distinfo @@ -0,0 +1,2 @@ +MD5 (dumb-0.9.2-fixed.tar.gz) = 0ce45f64934e6d5d7b82a55108596680 +SIZE (dumb-0.9.2-fixed.tar.gz) = 145722 diff --git a/devel/dumb/files/config.txt b/devel/dumb/files/config.txt new file mode 100644 index 0000000..3dc7974 --- /dev/null +++ b/devel/dumb/files/config.txt @@ -0,0 +1,4 @@ +include make/unix.inc +ALL_TARGETS := core core-examples core-headers +@ALLEGRO@ ALL_TARGETS += allegro allegro-examples allegro-headers +PREFIX := @LOCALBASE@ diff --git a/devel/dumb/files/patch-Makefile b/devel/dumb/files/patch-Makefile new file mode 100644 index 0000000..7cf9301 --- /dev/null +++ b/devel/dumb/files/patch-Makefile @@ -0,0 +1,16 @@ +--- Makefile.orig Sat Feb 26 15:24:14 2005 ++++ Makefile Sat Feb 26 15:25:07 2005 +@@ -186,10 +186,10 @@ + OFLAGS := -O2 -ffast-math -fomit-frame-pointer + DBGFLAGS := -DDEBUGMODE=1 -g3 + +-CFLAGS_RELEASE := -Iinclude $(WFLAGS) $(OFLAGS) +-CFLAGS_DEBUG := -Iinclude $(WFLAGS) $(DBGFLAGS) ++CFLAGS_RELEASE := -Iinclude -I$(PREFIX)/include $(WFLAGS) $(OFLAGS) ++CFLAGS_DEBUG := -Iinclude -I$(PREFIX)/include $(WFLAGS) $(DBGFLAGS) + +-LDFLAGS := -s ++LDFLAGS := -s -L$(PREFIX)/lib + + + CORE_EXAMPLES_OBJ := $(addprefix examples/, $(notdir $(patsubst %.c, %.o, $(CORE_EXAMPLES)))) diff --git a/devel/dumb/pkg-descr b/devel/dumb/pkg-descr new file mode 100644 index 0000000..0d52dcf --- /dev/null +++ b/devel/dumb/pkg-descr @@ -0,0 +1,3 @@ +DUMB is an IT, XM, S3M and MOD player library. + +WWW: http://dumb.sourceforge.net diff --git a/devel/dumb/pkg-plist b/devel/dumb/pkg-plist new file mode 100644 index 0000000..ef81f770 --- /dev/null +++ b/devel/dumb/pkg-plist @@ -0,0 +1,8 @@ +%%ALLEGRO%%bin/dumbplay +bin/dumbout +include/dumb.h +%%ALLEGRO%%include/aldumb.h +lib/libdumb.a +lib/libdumbd.a +%%ALLEGRO%%lib/libaldmb.a +%%ALLEGRO%%lib/libaldmd.a |