2013-06-18 13:46:51 +02:00
|
|
|
# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
|
2006-03-19 00:38:20 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= glpng
|
|
|
|
PORTVERSION= 1.45
|
2014-12-25 21:54:41 +01:00
|
|
|
PORTREVISION= 8
|
2006-03-19 00:38:20 +01:00
|
|
|
CATEGORIES= graphics
|
2006-12-21 21:41:33 +01:00
|
|
|
MASTER_SITES= http://www.wyatt100.freeserve.co.uk/ \
|
2009-07-28 18:34:36 +02:00
|
|
|
http://mirror.amdmi3.ru/distfiles/
|
2006-03-19 00:38:20 +01:00
|
|
|
DISTNAME= glpng
|
|
|
|
|
2008-06-19 19:28:24 +02:00
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
2006-03-19 00:38:20 +01:00
|
|
|
COMMENT= Library to easily load PNG files as an OpenGL textures
|
|
|
|
|
2015-01-24 14:53:49 +01:00
|
|
|
LICENSE= ZLIB
|
|
|
|
|
2016-04-01 16:00:51 +02:00
|
|
|
LIB_DEPENDS= libpng.so:graphics/png
|
2006-03-19 00:38:20 +01:00
|
|
|
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
USE_GL= gl
|
2014-03-10 15:49:26 +01:00
|
|
|
USES= dos2unix zip
|
2008-03-20 18:49:40 +01:00
|
|
|
USE_LDCONFIG= yes
|
2014-03-10 15:49:26 +01:00
|
|
|
DOS2UNIX_FILES= glpng.c
|
2006-03-19 00:38:20 +01:00
|
|
|
|
|
|
|
AR?= /usr/bin/ar
|
|
|
|
|
|
|
|
WRKSRC= ${WRKDIR}/src
|
|
|
|
|
|
|
|
do-build:
|
- Remove unneeded dependency from gtk12/gtk20 [1]
- Remove USE_XLIB/USE_X_PREFIX/USE_XPM in favor of USE_XORG
- Remove X11BASE support in favor of LOCALBASE or PREFIX
- Use USE_LDCONFIG instead of INSTALLS_SHLIB
- Remove unneeded USE_GCC 3.4+
Thanks to all Helpers:
Dmitry Marakasov, Chess Griffin, beech@, dinoex, rafan, gahr,
ehaupt, nox, itetcu, flz, pav
PR: 116263
Tested on: pointyhat
Approved by: portmgr (pav)
2008-04-19 19:56:05 +02:00
|
|
|
${CC} ${CFLAGS} -fPIC -I${LOCALBASE}/include -I${WRKDIR}/include -c -o ${WRKSRC}/libglpng.o ${WRKSRC}/glpng.c
|
2014-10-13 19:36:27 +02:00
|
|
|
${CC} ${CFLAGS} -fPIC -L${LOCALBASE}/lib -shared -Wl,-soname,libglpng.so.1 -lGL -lpng -lz -lm -o ${WRKSRC}/libglpng.so.1 ${WRKSRC}/libglpng.o
|
2006-03-19 00:38:20 +01:00
|
|
|
${AR} cqs ${WRKSRC}/libglpng.a ${WRKSRC}/libglpng.o
|
|
|
|
|
|
|
|
do-install:
|
2015-07-26 22:03:34 +02:00
|
|
|
${INSTALL_LIB} ${WRKSRC}/libglpng.so.1 ${STAGEDIR}${PREFIX}/lib
|
2013-10-17 03:01:53 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/libglpng.a ${STAGEDIR}${PREFIX}/lib
|
|
|
|
${LN} -sf libglpng.so.1 ${STAGEDIR}${PREFIX}/lib/libglpng.so
|
|
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/include/GL/
|
|
|
|
${INSTALL_DATA} ${WRKDIR}/include/GL/glpng.h ${STAGEDIR}${PREFIX}/include/GL/
|
2006-03-19 00:38:20 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|