opnsense-ports/graphics/fig2sxd/Makefile
Franco Fichtner 161597f629 */*: sync with upstream
Taken from: HardenedBSD
2018-08-06 07:53:52 +02:00

36 lines
867 B
Makefile

# Created by: Emanuel Haupt <ehaupt@critical.ch>
# $FreeBSD$
PORTNAME= fig2sxd
PORTVERSION= 0.22.1
PORTREVISION= 1
CATEGORIES= graphics converters
MASTER_SITES= LOCAL/ehaupt SF
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
MAINTAINER= ehaupt@FreeBSD.org
COMMENT= Convert .xfig files to the OpenOffice draw format
USES= gmake
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLIST_FILES= bin/fig2sxd man/man1/fig2sxd.1.gz
.include <bsd.port.pre.mk>
# Does not compile with clang 6.0.0; PR 226178.
.if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1200056
USE_GCC= yes
.endif
post-patch:
@${REINPLACE_CMD} -e \
'/^CXX/d; s|^\(all:\).*|\1 $$(TARGET1) fig2sxd.1|' \
${WRKSRC}/${MAKEFILE}
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.post.mk>