mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-25 04:43:33 +00:00
afc58ad631
libtiff from ports. I will maintain this port.
66 lines
1.7 KiB
Makefile
66 lines
1.7 KiB
Makefile
# New ports collection makefile for: fractorama
|
|
# Date created: Apr 15, 2001
|
|
# Whom: Ying-Chieh Liao <ijliao@FreeBSD.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= fractorama
|
|
PORTVERSION= 1.6.7
|
|
PORTREVISION= 1
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= http://fractorama.com/ \
|
|
http://critical.ch/distfiles/${PORTNAME}/${PORTVERSION}/ \
|
|
http://energy.critical.ch/distfiles/${PORTNAME}/${PORTVERSION}/
|
|
DISTNAME= ${PORTNAME}
|
|
|
|
MAINTAINER= ehaupt@FreeBSD.org
|
|
COMMENT= Fractal generation program
|
|
|
|
LIB_DEPENDS= tiff.4:${PORTSDIR}/graphics/tiff
|
|
|
|
USE_QT_VER= 3
|
|
USE_BISON= yes
|
|
USE_GMAKE= yes
|
|
MAKE_ENV= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}" \
|
|
QTCPPFLAGS="${QTCPPFLAGS} ${PTHREAD_CFLAGS}" \
|
|
QTCFGLIBS="${QTCFGLIBS} ${PTHREAD_LIBS}"
|
|
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/src
|
|
ALL_TARGET= release
|
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include
|
|
|
|
post-extract:
|
|
.for e in cpp h
|
|
@${CP} ${WRKSRC}/lib/tiff/TiffWriter.${e} ${WRKSRC}
|
|
.endfor
|
|
@${RM} -rf ${WRKSRC}/lib/tiff
|
|
|
|
pre-build:
|
|
${CXX} ${CXXFLAGS} -c -o ${WRKSRC}/TiffWriter.o ${WRKSRC}/TiffWriter.cpp
|
|
|
|
post-patch:
|
|
@${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
|
|
's|gcc|$${CC}| ; \
|
|
s|g++|$${CXX}| ; \
|
|
s|-L$${QTROOT}/lib -lqt|-lqt-mt $${QTCFGLIBS}| ; \
|
|
s|-I$${QTROOT}/include|$${QTCPPFLAGS}| ; \
|
|
s|-O2|$${CXXFLAGS}| ; \
|
|
/WARN.*:=/d'
|
|
@${REINPLACE_CMD} -e 's|/tools/qt-3.0.4|$${X11BASE}|' \
|
|
${WRKSRC}/directories.inc
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/../fractorama.exe ${PREFIX}/bin/fractorama
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
cd ${WRKSRC}/../doc && ${FIND} . | \
|
|
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
cd ${WRKSRC}/../examples && ${FIND} . | \
|
|
${CPIO} -pdm -L -R ${SHAREOWN}:${SHAREGRP} ${EXAMPLESDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|