1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00
freebsd-ports/devel/udis86/Makefile
Baptiste Daroussin 4a4ec28d37 Convert all :U to :tu and :L to :tl
Since FreeBSD 8.4 and FreeBSD 9.1 make(1) do support :tu and :tl as a
replacement for :U and :L (which has been marked as deprecated)

bmake which is the default on FreeBSD 10+ only support by default
:tu/:tl a hack has been added at the time to support :U and :L to ease
migration. This hack is now not necessary anymore

Note that this makes the ports tree incompatible with make(1) from
FreeBSD 8.3 or earlier

With hat:	portmgr
2014-05-05 09:45:36 +00:00

58 lines
1.4 KiB
Makefile

# Created by: Lutz Boehne <lboehne@damogran.de>
# $FreeBSD$
PORTNAME= udis86
PORTVERSION= 1.7.2
PORTREVISION= 2
CATEGORIES= devel
MASTER_SITES= SF
MASTER_SITE_SUBDIR= ${PORTNAME:tl}/${PORTNAME:tl}/${PORTVERSION:R}
MAINTAINER= bf@FreeBSD.org
COMMENT= Minimalistic x86 and x86-64 disassembler library
LICENSE= BSD2CLAUSE
USES= gmake libtool:keepla
USE_LDCONFIG= yes
INSTALL_TARGET= install-strip
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-sphinx-build --enable-shared
INFO= udis86
PORTDOCS= x86
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
post-patch:
@${REINPLACE_CMD} -Ee 's/function ([^#]+).*/\1 ()/' \
${WRKSRC}/tests/difftest.sh.in
.if ${PORT_OPTIONS:MDOCS}
@${REINPLACE_CMD} -e '\|docdir =|s|/docs/|/doc/|' \
${WRKSRC}/docs/manual/Makefile.in \
${WRKSRC}/docs/x86/Makefile.in
.else
@${REINPLACE_CMD} -e '/SUBDIRS \=/s/ docs//' ${WRKSRC}/Makefile.in
.endif
.if defined(MAINTAINER_MODE) || defined(PACKAGE_BUILDING)
BUILD_DEPENDS+= ${LOCALBASE}/bin/yasm:${PORTSDIR}/devel/yasm
CONFIGURE_ENV+= PYTHON="${PYTHON_CMD}" YASM="${LOCALBASE}/bin/yasm"
USE_PYTHON_BUILD= yes
check regression-test test: build
@cd ${WRKSRC} ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} check
.else
CONFIGURE_ARGS+= --without-yasm
CONFIGURE_ENV+= PYTHON="${FALSE}"
.endif
post-install:
@${INSTALL_DATA} ${WRKSRC}/docs/manual/udis86.info ${STAGEDIR}${PREFIX}/${INFO_PATH}/
.include <bsd.port.mk>