freebsd-ports/graphics/quat-gui/Makefile
Mathieu Arnold 21a283f3be Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.

Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.

Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3336
2015-08-17 14:20:40 +00:00

69 lines
1.7 KiB
Makefile

# Created by: David Yeske <dyeske@gmail.com>
# $FreeBSD$
PORTNAME= quat
PORTVERSION= 1.20
PORTREVISION= 14
CATEGORIES= graphics
#MASTER_SITES= http://www.physcip.uni-stuttgart.de/phy11733/download/
MASTER_SITES= http://www.sourcefiles.org/Graphics/Fractals/
PKGNAMESUFFIX= -gui
MAINTAINER= ports@FreeBSD.org
COMMENT= Three-dimensional fractal creator (X11 GUI)
LICENSE= GPLv2 # (or later)
LIB_DEPENDS= libfltk.so:${PORTSDIR}/x11-toolkits/fltk
OPTIONS_DEFINE= OPTIMIZED_CFLAGS DOCS
USE_XORG= xext
USE_GL= gl glut
GNU_CONFIGURE= yes
CONFIGURE_ENV= FLUID="${LOCALBASE}/bin/fluid"
CONFIGURE_ARGS= --datadir=${PREFIX}/share/doc
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
DOCSDIR= ${PREFIX}/share/doc/${PKGBASE}
PORTDOCS= *
PLIST_FILES= bin/quat
DESKTOP_ENTRIES="Quat" "3D Fractal Generator" "" "${PORTNAME}" "" ""
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
CFLAGS+= -O3 -ffast-math
.endif
post-patch:
@${REINPLACE_CMD} -E -e \
's,-(march=pentium|O3|ffast-math),,g' \
${WRKSRC}/configure
@${REINPLACE_CMD} -E -e \
's|-I\.[[:space:]]+-I\$$\(srcdir\)[[:space:]]+||' \
${WRKSRC}/gui/Makefile.in
@${REINPLACE_CMD} -e \
's|<FL/fl_file_chooser.H>|<FL/Fl_File_Chooser.H>| ; \
s|/doc/quat/|/doc/${PKGBASE}/|' \
${WRKSRC}/gui/MainWindow.cxx
# disable data file installation since distfile does not do
# The Right Thing(TM)
@${REINPLACE_CMD} -E -e \
's|^(install-data-am:).*$$|\1| ; \
s|^(SUBDIRS.*)doc|\1|' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e \
's|@PACKAGE@|${PKGBASE}|' \
${WRKSRC}/doc/Makefile.in
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@(cd ${WRKSRC}/doc && ${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} \
${MAKEFILE} ${MAKE_ARGS} ${INSTALL_TARGET})
.include <bsd.port.mk>