diff --git a/graphics/allegropng/Makefile b/graphics/allegropng/Makefile new file mode 100644 index 00000000000..d8faa7339b8 --- /dev/null +++ b/graphics/allegropng/Makefile @@ -0,0 +1,39 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2009/10/15 14:39:10 phessler Exp $ + +COMMENT = game programming library for C/C++ developers + +SHARED_ONLY = Yes + +V = 1.3 +DISTNAME = alpng13 +PKGNAME = alpng-$V +CATEGORIES = graphics +SHARED_LIBS = alleg 0.0 # 4.2 + +HOMEPAGE = http://alpng.sourceforge.net/ +MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=alpng/} + +# bsd-like +# "Altered source versions must be plainly marked as such +# and must not be misrepresented as being the original software." +PERMIT_PACKAGE_CDROM = Yes +PERMIT_PACKAGE_FTP = Yes +PERMIT_DISTFILES_CDROM =Yes +PERMIT_DISTFILES_FTP = Yes + +USE_GMAKE = Yes +LIB_DEPENDS = ::games/allegro + +MAKE_FILE = makefile +MAKE_FLAGS = CFLAGS=-I${LOCALBASE}/include +NO_REGRESS = Yes + +do-extract: + @mkdir ${WRKSRC} + @tar xzf ${FULLDISTDIR}/${DISTNAME}${EXTRACT_SUFX} -C ${WRKSRC} + +do-install: + ${INSTALL_DATA} ${WRKSRC}/libalpng.a ${PREFIX}/lib + ${INSTALL_DATA} ${WRKSRC}/src/alpng.h ${PREFIX}/include + +.include diff --git a/graphics/allegropng/distinfo b/graphics/allegropng/distinfo new file mode 100644 index 00000000000..1b53d44974a --- /dev/null +++ b/graphics/allegropng/distinfo @@ -0,0 +1,5 @@ +MD5 (alpng13.tar.gz) = 4eTPJ3FmOkPAZeBM5fTv2Q== +RMD160 (alpng13.tar.gz) = +9B2m4yeaZZmwgQvJMz48OlgSJo= +SHA1 (alpng13.tar.gz) = f205Qw1soMAbAalgWFHJwyuXnLA= +SHA256 (alpng13.tar.gz) = SU2cMk4p0aKukt2iXKOGfRS/nnZiHmVOuWYQmeLKUFU= +SIZE (alpng13.tar.gz) = 143920 diff --git a/graphics/allegropng/patches/patch-makefile b/graphics/allegropng/patches/patch-makefile new file mode 100644 index 00000000000..d6d61a9ee96 --- /dev/null +++ b/graphics/allegropng/patches/patch-makefile @@ -0,0 +1,28 @@ +$OpenBSD: patch-makefile,v 1.1.1.1 2009/10/15 14:39:10 phessler Exp $ +--- makefile.orig Tue Jun 2 14:39:19 2009 ++++ makefile Tue Jun 2 14:41:00 2009 +@@ -13,19 +13,19 @@ libalpng.a: $(OBJECTS) + ar crs libalpng.a $? + + objects/%.o: %.c +- gcc $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@ ++ ${CC} $(CFLAGS) -O3 -Wall -ansi -pedantic -Isrc -c $< -o $@ + + objects/%.o: src/%.c +- gcc $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@ ++ ${CC} $(CFLAGS) -O3 -Wall -ansi -pedantic -Isrc -c $< -o $@ + + objects/%.o: src/inflate/%.c +- gcc $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@ ++ ${CC} $(CFLAGS) -O3 -Wall -ansi -pedantic -Isrc -c $< -o $@ + + objects/%.o: src/quantization/%.c +- gcc $(CFLAGS) -O3 -Wall -Wextra -ansi -pedantic -Isrc -c $< -o $@ ++ ${CC} $(CFLAGS) -O3 -Wall -ansi -pedantic -Isrc -c $< -o $@ + + ex01: objects/ex01.o libalpng.a +- gcc $(LDFLAGS) -s -O3 -Wall -Wextra -ansi -pedantic $^ -o $@ -Isrc -L. `allegro-config --libs` ++ ${CC} $(LDFLAGS) -s -O3 -Wall -ansi -pedantic $^ -o $@ -Isrc -L. `allegro-config --libs` + + + clean: diff --git a/graphics/allegropng/pkg/DESCR b/graphics/allegropng/pkg/DESCR new file mode 100644 index 00000000000..2fd37298b1f --- /dev/null +++ b/graphics/allegropng/pkg/DESCR @@ -0,0 +1,2 @@ +Library for loading PNG files for the Allegro library. Does not depend +on libpng nor zlib (however can take advantage of zlib if installed). diff --git a/graphics/allegropng/pkg/PLIST b/graphics/allegropng/pkg/PLIST new file mode 100644 index 00000000000..97c73e8b531 --- /dev/null +++ b/graphics/allegropng/pkg/PLIST @@ -0,0 +1,3 @@ +@comment $OpenBSD: PLIST,v 1.1.1.1 2009/10/15 14:39:10 phessler Exp $ +include/alpng.h +lib/libalpng.a