1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-05 01:55:52 +00:00
freebsd-ports/graphics/mxp/Makefile
John Marino 418ee4a320 Stage graphics/mxp and unbreak FreeBSD 10+
PR:		192799
Submitted by:	Ports Fury
2014-08-21 13:19:18 +00:00

52 lines
1.2 KiB
Makefile

# Created by: NAKATA Maho <maho@FreeBSD.org>
# $FreeBSD$
PORTNAME= mxp
PORTVERSION= 1.3
PORTREVISION= 5
CATEGORIES= graphics
MASTER_SITES= SUNSITE/apps/math/fractals
MAINTAINER= ports@FreeBSD.org
COMMENT= Application for computing/exploring Mandelbrot set
LICENSE= GPLv2
WRKSRC= ${WRKDIR}/${PORTNAME}
USE_XORG= xaw xbitmaps xpm
ALL_TARGET= ${PORTNAME}
MAKE_JOBS_UNSAFE= yes
CFLAGS+= -Wno-error=return-type
CPPFLAGS+= -I${LOCALBASE}/include -DXPM
LDFLAGS+= -L${LOCALBASE}/lib -lXpm
PORTDOCS= README
PLIST_FILES= bin/${PORTNAME} share/pixmaps/${PORTNAME}.xpm
DESKTOP_ENTRIES="Mxp" "Mandelbrot Explorer" \
"${PREFIX}/share/pixmaps/${PORTNAME}.xpm" "${PORTNAME}" \
"" ""
OPTIONS_DEFINE= DOCS
post-patch:
@(cd ${WRKSRC} && ${SED} -e \
's|$$(XINC)|$$(CPPFLAGS)| ; \
s|-L/X/X11/lib|$$(LDFLAGS)|' Makefile.noimake > Makefile)
post-build:
@${LN} -sf icon.xpm ${WRKSRC}/${PORTNAME}.xpm
do-install:
(cd ${WRKSRC} && ${INSTALL_PROGRAM} ${PORTNAME} \
${STAGEDIR}${PREFIX}/bin)
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTNAME}.xpm \
${STAGEDIR}${PREFIX}/share/pixmaps)
@${MKDIR} ${STAGEDIR}${DOCSDIR}
(cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} \
${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>