Changeset View
Changeset View
Standalone View
Standalone View
misc/free42/Makefile
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= Free42 | PORTNAME= free42 | ||||
DISTVERSION= 2.0.7 | DISTVERSION= 2.0.10 | ||||
tcberner: ^ note that you change the Pkgname, so some people might be surprised by that -- It's however… | |||||
Not Done Inline ActionsOk. yuri: Ok. | |||||
CATEGORIES= misc | CATEGORIES= misc | ||||
MASTER_SITES= http://thomasokken.com/free42/upstream/ | MASTER_SITES= http://thomasokken.com/free42/upstream/ | ||||
DISTNAME= ${PORTNAME:tl}-nologo-${DISTVERSION} | DISTNAME= ${PORTNAME}-nologo-${DISTVERSION} | ||||
MAINTAINER= yuri@FreeBSD.org | MAINTAINER= yuri@FreeBSD.org | ||||
COMMENT= Simulation of the HP-42S scientific calculator and HP-82240 printer | COMMENT= Simulation of the HP-42S scientific calculator and HP-82240 printer | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
BROKEN_aarch64= fails to link: c++: error: no such file or directory: 'gcc111libbid.a' | BROKEN_aarch64= fails to link: c++: error: no such file or directory: 'gcc111libbid.a' | ||||
BROKEN_armv6= fails to link: c++: error: no such file or directory: 'gcc111libbid.a' | BROKEN_armv6= fails to link: c++: error: no such file or directory: 'gcc111libbid.a' | ||||
BROKEN_mips64= fails to link: c++: error: no such file or directory: 'gcc111libbid.a' | BROKEN_mips64= fails to link: c++: error: no such file or directory: 'gcc111libbid.a' | ||||
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ | LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ | ||||
libfreetype.so:print/freetype2 | libfreetype.so:print/freetype2 | ||||
USES= dos2unix gmake localbase pkgconfig tar:tgz | USES= dos2unix gmake localbase pkgconfig tar:tgz | ||||
USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk20 pango | USE_GNOME= atk cairo gdkpixbuf2 glib20 gtk20 pango | ||||
USE_XORG= x11 xmu | USE_XORG= x11 xmu | ||||
DOS2UNIX_FILES= gtk/IntelRDFPMathLib20U1/LIBRARY/float128/op_system.h | DOS2UNIX_FILES= gtk/IntelRDFPMathLib20U1/LIBRARY/float128/op_system.h | ||||
BUILD_WRKSRC= ${WRKSRC}/gtk | BUILD_WRKSRC= ${WRKSRC}/gtk | ||||
PLIST_FILES= bin/free42bin \ | |||||
share/free42/skins/Ehrling42sl.gif \ | |||||
share/free42/skins/Ehrling42sl.layout \ | |||||
share/free42/skins/README.txt \ | |||||
share/free42/skins/Standard.gif \ | |||||
share/free42/skins/Standard.layout | |||||
matUnsubmitted Done Inline ActionsPlease keep the pkg-plist file. mat: Please keep the pkg-plist file. | |||||
post-extract: | post-extract: | ||||
@${RM} `${FIND} ${WRKDIR} -name "*.orig"` | |||||
@cd ${BUILD_WRKSRC} && tar xvfz ../inteldecimal/IntelRDFPMathLib20U1.tar.gz | @cd ${BUILD_WRKSRC} && tar xvfz ../inteldecimal/IntelRDFPMathLib20U1.tar.gz | ||||
post-patch: | post-patch: | ||||
@${REINPLACE_CMD} -e 's|"%s/%s.%s", free42dirname, name,|"%s/%s.%s", "${DATADIR:tl}", name,|' \ | @${REINPLACE_CMD} -e 's|snprintf(free42dirname, FILENAMELEN, "%s/\.free42", home)|strcpy(free42dirname, "${DATADIR}")|' \ | ||||
${BUILD_WRKSRC}/shell_skin.cc | ${BUILD_WRKSRC}/shell_main.cc | ||||
do-build: | do-build: | ||||
@cd ${BUILD_WRKSRC} && \ | @cd ${BUILD_WRKSRC} && \ | ||||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} cleaner && \ | ${SETENV} ${MAKE_ENV} ${MAKE_CMD} cleaner && \ | ||||
${SETENV} ${MAKE_ENV} ${MAKE_CMD} | ${SETENV} ${MAKE_ENV} ${MAKE_CMD} | ||||
# TODO do we need decimal fp arithmetic?: ${MAKE_CMD} BCD_MATH=1 SKIN_SYS_DIR="${DATADIR:tl}" | # TODO do we need decimal fp arithmetic?: ${MAKE_CMD} BCD_MATH=1 SKIN_SYS_DIR="${DATADIR}" | ||||
do-install: | do-install: | ||||
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/free42bin ${STAGEDIR}${PREFIX}/bin/ | ${INSTALL_PROGRAM} ${BUILD_WRKSRC}/free42bin ${STAGEDIR}${PREFIX}/bin/ | ||||
@cd ${WRKSRC} && ${COPYTREE_SHARE} skins ${STAGEDIR}${DATADIR:tl} | @cd ${WRKSRC} && ${COPYTREE_SHARE} skins ${STAGEDIR}${DATADIR} | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
^ note that you change the Pkgname, so some people might be surprised by that -- It's however the correct name imho :)