1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00
freebsd-ports/graphics/glpng/Makefile
Florent Thoumie d4f0d0048a - Welcome X.org 7.2 \o/.
- Set X11BASE to ${LOCALBASE} for recent ${OSVERSION}.
- Bump PORTREVISION for ports intalling files in ${X11BASE}.
2007-05-19 20:36:56 +00:00

46 lines
1.2 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= 1
CATEGORIES= graphics
MASTER_SITES= http://www.wyatt100.freeserve.co.uk/ \
http://www.amdmi3.ru/distfiles/
DISTNAME= glpng
MAINTAINER= amdmi3@amdmi3.ru
COMMENT= Library to easily load PNG files as an OpenGL textures
LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png
USE_GL= yes
USE_ZIP= yes
USE_X_PREFIX= yes
INSTALLS_SHLIB= yes
AR?= /usr/bin/ar
WRKSRC= ${WRKDIR}/src
post-patch:
@${REINPLACE_CMD} -e 's|png/|libpng/|' ${WRKSRC}/glpng.c
do-build:
${CC} ${CFLAGS} -fPIC -I${X11BASE}/include -I${LOCALBASE}/include -I${WRKDIR}/include -c -o ${WRKSRC}/libglpng.o ${WRKSRC}/glpng.c
${CC} ${CFLAGS} -fPIC -L${X11BASE}/lib -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>