diff options
author | flz <flz@FreeBSD.org> | 2005-03-14 06:42:39 +0800 |
---|---|---|
committer | flz <flz@FreeBSD.org> | 2005-03-14 06:42:39 +0800 |
commit | ab0487d53f0e3151d2c621176e74d1c83f2129f8 (patch) | |
tree | 828f41ed582538dcfc5771456b10e9ba3ce4bb0c | |
parent | 2fb831bca78b8a2d0f01c50a8c88e3350e53e611 (diff) | |
download | freebsd-ports-gnome-ab0487d53f0e3151d2c621176e74d1c83f2129f8.tar.gz freebsd-ports-gnome-ab0487d53f0e3151d2c621176e74d1c83f2129f8.tar.zst freebsd-ports-gnome-ab0487d53f0e3151d2c621176e74d1c83f2129f8.zip |
- Add dumb 0.9.2, an IT, XM, S3M and MOD player library
PR: ports/78118
Submitted by: Andreas Kohn <andreas@syndrom23.de>
-rw-r--r-- | audio/dumb/Makefile | 43 | ||||
-rw-r--r-- | audio/dumb/distinfo | 2 | ||||
-rw-r--r-- | audio/dumb/files/config.txt | 4 | ||||
-rw-r--r-- | audio/dumb/files/patch-Makefile | 16 | ||||
-rw-r--r-- | audio/dumb/pkg-descr | 3 | ||||
-rw-r--r-- | audio/dumb/pkg-plist | 8 | ||||
-rw-r--r-- | devel/Makefile | 1 | ||||
-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 |
13 files changed, 153 insertions, 0 deletions
diff --git a/audio/dumb/Makefile b/audio/dumb/Makefile new file mode 100644 index 000000000000..f446cf19412e --- /dev/null +++ b/audio/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/audio/dumb/distinfo b/audio/dumb/distinfo new file mode 100644 index 000000000000..6b979179b11d --- /dev/null +++ b/audio/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/audio/dumb/files/config.txt b/audio/dumb/files/config.txt new file mode 100644 index 000000000000..3dc79747974c --- /dev/null +++ b/audio/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/audio/dumb/files/patch-Makefile b/audio/dumb/files/patch-Makefile new file mode 100644 index 000000000000..7cf93017e641 --- /dev/null +++ b/audio/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/audio/dumb/pkg-descr b/audio/dumb/pkg-descr new file mode 100644 index 000000000000..0d52dcff4920 --- /dev/null +++ b/audio/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/audio/dumb/pkg-plist b/audio/dumb/pkg-plist new file mode 100644 index 000000000000..ef81f770d34c --- /dev/null +++ b/audio/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 diff --git a/devel/Makefile b/devel/Makefile index f335e8da9bab..af15892226af 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -210,6 +210,7 @@ SUBDIR += doxygen SUBDIR += dparser SUBDIR += dprog + SUBDIR += dumb SUBDIR += dwarfdump SUBDIR += e4graph SUBDIR += ebnf2yacc diff --git a/devel/dumb/Makefile b/devel/dumb/Makefile new file mode 100644 index 000000000000..f446cf19412e --- /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 000000000000..6b979179b11d --- /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 000000000000..3dc79747974c --- /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 000000000000..7cf93017e641 --- /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 000000000000..0d52dcff4920 --- /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 000000000000..ef81f770d34c --- /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 |