freebsd-ports/graphics/glpng/Makefile

41 lines
1.1 KiB
Makefile
Raw Normal View History

# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
# $FreeBSD$
PORTNAME= glpng
PORTVERSION= 1.45
2014-12-25 21:54:41 +01:00
PORTREVISION= 8
CATEGORIES= graphics
MASTER_SITES= http://www.wyatt100.freeserve.co.uk/ \
http://mirror.amdmi3.ru/distfiles/
DISTNAME= glpng
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Library to easily load PNG files as an OpenGL textures
2015-01-24 14:53:49 +01:00
LICENSE= ZLIB
LIB_DEPENDS= libpng.so:graphics/png
USE_GL= gl
2014-03-10 15:49:26 +01:00
USES= dos2unix zip
USE_LDCONFIG= yes
2014-03-10 15:49:26 +01:00
DOS2UNIX_FILES= glpng.c
AR?= /usr/bin/ar
WRKSRC= ${WRKDIR}/src
do-build:
${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
${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
${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/
.include <bsd.port.mk>