freebsd-ports/graphics/simpleviewer/Makefile

35 lines
887 B
Makefile
Raw Normal View History

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= simpleviewer
PORTVERSION= 1.7.1553.8560
PORTREVISION= 9
CATEGORIES= graphics
MASTER_SITES= SF/${PORTNAME}/OpenGL%20edition
DISTNAME= sviewgl-src-${PORTVERSION}
2011-12-16 16:01:21 +01:00
MAINTAINER= ports@FreeBSD.org
COMMENT= Small and simple OpenGL image viewer with transparency support
LICENSE= GPLv2
LIB_DEPENDS= libjpeg.so:${PORTSDIR}/graphics/jpeg \
2014-12-25 13:30:49 +01:00
libpng.so:${PORTSDIR}/graphics/png \
libgif.so:${PORTSDIR}/graphics/giflib \
libImlib2.so:${PORTSDIR}/graphics/imlib2
USES= tar:bzip2
USE_GL= glut
WRKSRC= ${WRKDIR}/sviewgl-src
MAKE_ARGS= CC="${CXX}"
PLIST_FILES= bin/sviewgl
post-patch:
2012-06-01 07:26:28 +02:00
@${REINPLACE_CMD} -e 's,-O2,${CFLAGS}, ; s,/usr/include,${LOCALBASE}/include,g ; \
2012-02-18 20:56:18 +01:00
s,=-s,=-L${LOCALBASE}/lib,' ${WRKSRC}/Makefile
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/sviewgl ${STAGEDIR}${PREFIX}/bin
.include <bsd.port.mk>