f899c758a6
everything at once. Sometime, rename post-install into a options helper target. I did not fix ports that were such a mess that I could not figure out what they really wanted to do. I also did not change ports that had some version of an auto-plist code in post-install, for the same reason. With hat: portmgr Sponsored by: Absolight
45 lines
1.1 KiB
Makefile
45 lines
1.1 KiB
Makefile
# Created by: Janos.Mohacsi@bsd.hu
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= yape
|
|
PORTVERSION= 0.32.5
|
|
PORTREVISION= 3
|
|
CATEGORIES= emulators
|
|
MASTER_SITES= http://yape.homeserver.hu/download/
|
|
DISTNAME= ${PORTNAME}SDL-${PORTVERSION}
|
|
|
|
MAINTAINER= jmohacsi@bsd.hu
|
|
COMMENT= Yet Another Commodore +4 Emulator
|
|
|
|
USE_SDL= sdl
|
|
USES= compiler:features gmake
|
|
NO_WRKSUBDIR= yes
|
|
ALL_TARGET= yape
|
|
|
|
PLIST_FILES= bin/yape
|
|
PORTDOCS= README.SDL
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-extract:
|
|
@${FIND} -E ${WRKSRC} -type f -iregex ".*\.(c|cpp|h|txt)" -print0 | \
|
|
${XARGS} -0 ${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//'
|
|
@${REINPLACE_CMD} -e 's/[[:cntrl:]]*$$//' ${WRKSRC}/Makefile
|
|
|
|
post-patch:
|
|
.if ${COMPILER_TYPE} == clang
|
|
@${REINPLACE_CMD} -e "s|-frerun-loop-opt||" ${WRKSRC}/Makefile
|
|
.endif
|
|
@${REINPLACE_CMD} -e "s|sdl-config|${SDL_CONFIG}|" ${WRKSRC}/Makefile
|
|
@${REINPLACE_CMD} -e "s|TAP::TAP|TAP|" ${WRKSRC}/tape.h
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/yape ${STAGEDIR}${PREFIX}/bin
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/README.SDL ${STAGEDIR}${DOCSDIR}
|
|
|
|
.include <bsd.port.post.mk>
|