# Created by: Antoine Brodin # $FreeBSD$ PORTNAME= libdasm PORTVERSION= 1.5 PORTREVISION= 1 CATEGORIES= devel MASTER_SITES= GOOGLE_CODE MAINTAINER= antoine@FreeBSD.org COMMENT= Simple x86 disassembly library USE_LDCONFIG= yes PORTDOCS= HISTORY.txt README.txt PORTEXAMPLES= README.txt das.c simple.c .include .if ${ARCH} == "amd64" || ${ARCH} == "ia64" CFLAGS+= -fPIC -DPIC .endif post-patch: @${REINPLACE_CMD} -E 's,^(CC|CFLAGS|PREFIX).*=,\1 ?=,; \ s,libdasm.so.1.0,libdasm.so.1,g; \ s,cp ,${INSTALL_DATA} ,g' \ ${WRKSRC}/Makefile post-install: .if ${PORT_OPTIONS:MEXAMPLES} @${MKDIR} ${EXAMPLESDIR} ${INSTALL_DATA} ${PORTEXAMPLES:S,^,${WRKSRC}/examples/,} ${EXAMPLESDIR} .endif .if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR} .endif .include