bbab7f59e9
- Remove all references to defunct ARCH arm - Remove all references to defunct ARCH sparc64 - Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64 ARCH - Remove sysutils/afbinit requires defunct sparc64 ARCH - Remove all references to bktr driver - Remove all references to defunct FreeBSD_12 - Remove all references to OSVERSION/OSREL corresponding to 12 - Remove conditionals in Mk/Uses/cabal.mk - Remove sparc reference from Mk/Uses/qt-dist.mk - Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64 - Remove BROKEN_FreeBSD_12* from: - Remove OpenSSL patches from: - Remove conditional flags for OSVERSION >= 1300000 to fixed flags. Also move conditional flags for non sparc64/arm ARCH to fixed flags. Reviewed by: brooks, jbeich, rene, salvadore Differential Revision: https://reviews.freebsd.org/D42068
47 lines
1.3 KiB
Makefile
47 lines
1.3 KiB
Makefile
PORTNAME?= distorm
|
|
DISTVERSION= 20121220-r230
|
|
PORTREVISION?= 2
|
|
CATEGORIES= devel
|
|
MASTER_SITES= LOCAL/bf
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT?= Fast x86 and x86-64 disassembler library
|
|
WWW= https://github.com/gdabah/distorm
|
|
|
|
LICENSE= GPLv3+
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
USES= dos2unix tar:xz
|
|
USE_LDCONFIG= yes
|
|
|
|
BUILD_WRKSRC= ${WRKSRC}/make/linux
|
|
|
|
PLIST_FILES= bin/disasm \
|
|
include/distorm.h \
|
|
include/mnemonics.h \
|
|
lib/libdistorm3.a \
|
|
lib/libdistorm3.so \
|
|
lib/libdistorm3.so.1
|
|
|
|
PICFLAG?= -fpic
|
|
|
|
do-build:
|
|
@(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
EXTRAFLAGS="${PICFLAG} -DDISTORM_DYNAMIC" ${MAKE} ${_MAKE_JOBS} \
|
|
${MAKE_ARGS} clib)
|
|
@(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} \
|
|
EXTRAFLAGS="-DDISTORM_STATIC" ${MAKE} ${_MAKE_JOBS} ${MAKE_ARGS} staticlib)
|
|
${CC} ${CFLAGS} ${LDFLAGS} -o ${BUILD_WRKSRC}/disasm \
|
|
${WRKSRC}/examples/linux/main.c ${BUILD_WRKSRC}/libdistorm3.a
|
|
|
|
do-test:
|
|
@cd ${BUILD_WRKSRC} && ./disasm disasm
|
|
|
|
do-install:
|
|
${INSTALL_DATA} ${BUILD_WRKSRC}/libdistorm3.a ${STAGEDIR}${PREFIX}/lib
|
|
${INSTALL_LIB} ${BUILD_WRKSRC}/libdistorm3.so ${STAGEDIR}${PREFIX}/lib/libdistorm3.so.1
|
|
${LN} -sf libdistorm3.so.1 ${STAGEDIR}${PREFIX}/lib/libdistorm3.so
|
|
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/disasm ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_DATA} ${WRKSRC}/include/*.h ${STAGEDIR}${PREFIX}/include
|
|
|
|
.include <bsd.port.mk>
|