39db1df0ed
This port was an experiment to make assembly code in lzma work. It turns out that a different, less hacky assembler does the trick, too. If someone else wishes to pick up this port and finish the porting effort (probably needs some touchups to the structure definitions so it runs better) it would be greatly appreciated.
49 lines
1.2 KiB
Makefile
49 lines
1.2 KiB
Makefile
PORTNAME= asmc
|
|
PORTVERSION= 2.37.94
|
|
CATEGORIES= lang devel
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Masm compatible assembler
|
|
|
|
LICENSE= GPLv2+
|
|
LICENSE_FILE= ${WRKSRC}/license.txt
|
|
|
|
ONLY_FOR_ARCHS= amd64 i386
|
|
ONLY_FOR_ARCHS_REASON= written in x86 assembly
|
|
|
|
USES= gmake
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= nidud
|
|
GH_TAGNAME= 0c144a031b7c8ff335ee41b1eff1b4de353bf4ce
|
|
|
|
MAKEFILE= makefile
|
|
MAKE_ARGS_i386= x86=1
|
|
MAKE_ARGS+= ${MAKE_ARGS_${ARCH}} \
|
|
SUBVERSION=${PORTVERSION:E}
|
|
MAKE_JOBS_UNSAFE= yes
|
|
.if defined(WITH_DEBUG)
|
|
MAKE_ARGS+= debug=1
|
|
.endif
|
|
ALL_TARGET= ${PROG}
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/source/asmc
|
|
|
|
PROG= ${PROG_${ARCH}}
|
|
PROG_amd64= asmc64
|
|
PROG_i386= asmc
|
|
|
|
# bootstrap tool
|
|
post-extract:
|
|
${CHMOD} +x ${WRKSRC}/bin/${PROG}
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e 's,/usr/lib/asmc,${PREFIX}/libdata/asmc,' ${BUILD_WRKSRC}/asmc-profile.sh
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/${PROG} ${STAGEDIR}${PREFIX}/bin/asmc
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/libdata/asmc/include ${STAGEDIR}${PREFIX}/etc/profile.d
|
|
(cd ${WRKSRC} && ${COPYTREE_SHARE} include ${STAGEDIR}${PREFIX}/libdata/asmc/)
|
|
${INSTALL_SCRIPT} ${BUILD_WRKSRC}/asmc-profile.sh ${STAGEDIR}${PREFIX}/etc/profile.d/
|
|
|
|
.include <bsd.port.mk>
|