1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-04 01:48:54 +00:00
freebsd-ports/graphics/mxp/Makefile
2021-04-06 16:31:07 +02:00

52 lines
1.2 KiB
Makefile

# Created by: NAKATA Maho <maho@FreeBSD.org>
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}
USES= xorg
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>