1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/graphics/glpng/Makefile
2012-06-01 05:26:28 +00:00

42 lines
1.1 KiB
Makefile

# New ports collection makefile for: glpng
# Date created: 06 Mar 2006
# Whom: Dmitry Marakasov <amdmi3@amdmi3.ru>
#
# $FreeBSD$
#
PORTNAME= glpng
PORTVERSION= 1.45
PORTREVISION= 5
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
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
USE_GL= gl
USE_ZIP= yes
USE_LDCONFIG= yes
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
${CC} ${CFLAGS} -fPIC -L${LOCALBASE}/lib -shared -lGL -lpng -lz -lm -o ${WRKSRC}/libglpng.so.1 ${WRKSRC}/libglpng.o
${AR} cqs ${WRKSRC}/libglpng.a ${WRKSRC}/libglpng.o
do-install:
${INSTALL_DATA} ${WRKSRC}/libglpng.so.1 ${PREFIX}/lib
${INSTALL_DATA} ${WRKSRC}/libglpng.a ${PREFIX}/lib
${LN} -sf libglpng.so.1 ${PREFIX}/lib/libglpng.so
${MKDIR} ${PREFIX}/include/GL/
${INSTALL_DATA} ${WRKDIR}/include/GL/glpng.h ${PREFIX}/include/GL/
.include <bsd.port.mk>