2013-05-21 08:17:26 +02:00
|
|
|
# Created by: chinsan
|
2006-12-04 00:21:58 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= scale2x
|
2013-05-21 08:17:26 +02:00
|
|
|
PORTVERSION= 3.0
|
2006-12-04 00:21:58 +01:00
|
|
|
CATEGORIES= graphics
|
2009-08-22 02:23:13 +02:00
|
|
|
MASTER_SITES= SF
|
2006-12-04 00:21:58 +01:00
|
|
|
|
2009-08-28 19:37:26 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2006-12-04 00:21:58 +01:00
|
|
|
COMMENT= Real-time graphics effect able to increase the size of small bitmaps
|
|
|
|
|
2013-05-21 08:17:26 +02:00
|
|
|
LICENSE= GPLv2 # (or later)
|
|
|
|
|
2012-06-01 07:26:28 +02:00
|
|
|
LIB_DEPENDS= png15:${PORTSDIR}/graphics/png
|
2006-12-04 00:21:58 +01:00
|
|
|
|
2013-05-21 08:17:26 +02:00
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
OPTIONS_DEFINE_i386= MMX
|
|
|
|
|
2006-12-04 00:21:58 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2013-05-21 08:17:26 +02:00
|
|
|
|
|
|
|
CPPFLAGS+= $$(libpng15-config --I_opts)
|
|
|
|
LDFLAGS+= $$(libpng15-config --L_opts)
|
2006-12-04 00:21:58 +01:00
|
|
|
|
|
|
|
MAN1= scalex.1 scalerx.1
|
2013-05-21 08:17:26 +02:00
|
|
|
PORTDOCS= *
|
|
|
|
PORTEXAMPLES= *
|
2009-10-20 11:40:20 +02:00
|
|
|
PLIST_FILES= bin/scalex bin/scalerx
|
2006-12-04 00:21:58 +01:00
|
|
|
|
2013-09-20 20:35:44 +02:00
|
|
|
NO_STAGE= yes
|
2013-05-21 08:17:26 +02:00
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MMMX}
|
|
|
|
CPPFLAGS+= -DHAVE_MMX
|
|
|
|
.endif
|
2010-03-29 17:59:37 +02:00
|
|
|
|
|
|
|
post-patch:
|
2013-05-21 08:17:26 +02:00
|
|
|
@${REINPLACE_CMD} -e \
|
|
|
|
'/<malloc.h>/d ; \
|
|
|
|
s|__i386__|HAVE_MMX| ; \
|
|
|
|
s|__x86_64__|__amd64__|' ${WRKSRC}/*.[ch]
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
|
|
|
(cd ${WRKSRC}/doc && ${INSTALL_DATA} *.html ${DOCSDIR})
|
|
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
|
|
@${MKDIR} ${EXAMPLESDIR}
|
|
|
|
(cd ${WRKSRC}/example && ${INSTALL_DATA} *.png ${EXAMPLESDIR})
|
|
|
|
.endif
|
2006-12-04 00:21:58 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|