1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-20 04:02:27 +00:00
freebsd-ports/devel/dyncall/Makefile
Thomas Zander 99a27c9ea3 Add -fPIC to CFLAGS; bump PORTREVISION
PIC is required for this port to work properly. However, the
port's own build system only adds it if CFLAGS is not set in MAKE_ENV.
This adds -fPIC to the pre-defined set of CFLAGS to ensure the port
is properly built.

PR:		208201
Submitted by:	tphilipp@potion-studios.com (maintainer)
2016-03-30 17:30:46 +00:00

84 lines
2.8 KiB
Makefile

# Created by: Tassilo Philipp <tphilipp@potion-studios.com>
# $FreeBSD$
PORTNAME= dyncall
PORTVERSION= 0.9
PORTREVISION= 1
CATEGORIES= devel
MASTER_SITES= http://www.dyncall.org/r${PORTVERSION}/ \
http://www.potion-studios.com/
MAINTAINER= tphilipp@potion-studios.com
COMMENT= Highly dynamic multi-platform foreign function call interface library
LICENSE= ISCL
HAS_CONFIGURE= yes
CFLAGS+= -fPIC
# There is no install target in the BSD makefile for this version of the dyncall
# library, so install it manually.
.include <bsd.port.pre.mk>
.if ${ARCH} == "ia64"
BROKEN= Does not install (unsupported architecture)
.endif
do-install:
${INSTALL_DATA} \
${WRKSRC}/dyncall/dyncall_value.h \
${WRKSRC}/dyncall/dyncall_macros.h \
${WRKSRC}/dyncall/dyncall_callf.h \
${WRKSRC}/dyncall/dyncall_types.h \
${WRKSRC}/dyncall/dyncall_signature.h \
${WRKSRC}/dyncall/dyncall_config.h \
${WRKSRC}/dyncall/dyncall.h \
${WRKSRC}/dyncallback/dyncall_alloc_wx.h \
${WRKSRC}/dyncallback/dyncall_thunk_x86.h \
${WRKSRC}/dyncallback/dyncall_thunk_x64.h \
${WRKSRC}/dyncallback/dyncall_thunk_sparc64.h \
${WRKSRC}/dyncallback/dyncall_thunk_sparc32.h \
${WRKSRC}/dyncallback/dyncall_thunk_mips.h \
${WRKSRC}/dyncallback/dyncall_thunk_ppc64.h \
${WRKSRC}/dyncallback/dyncall_thunk_ppc32.h \
${WRKSRC}/dyncallback/dyncall_thunk_arm32_thumb.h \
${WRKSRC}/dyncallback/dyncall_thunk_arm32_arm.h \
${WRKSRC}/dyncallback/dyncall_thunk_arm64.h \
${WRKSRC}/dyncallback/dyncall_thunk.h \
${WRKSRC}/dyncallback/dyncall_callback_x86.h \
${WRKSRC}/dyncallback/dyncall_callback_x64.h \
${WRKSRC}/dyncallback/dyncall_callback_sparc32.h \
${WRKSRC}/dyncallback/dyncall_callback_mips.h \
${WRKSRC}/dyncallback/dyncall_callback_ppc64.h \
${WRKSRC}/dyncallback/dyncall_callback_ppc32.h \
${WRKSRC}/dyncallback/dyncall_callback_arm32_thumb.h \
${WRKSRC}/dyncallback/dyncall_callback_arm32_arm.h \
${WRKSRC}/dyncallback/dyncall_callback.h \
${WRKSRC}/dyncallback/dyncall_args_x86.h \
${WRKSRC}/dyncallback/dyncall_args_x64.h \
${WRKSRC}/dyncallback/dyncall_args_sparc64.h \
${WRKSRC}/dyncallback/dyncall_args_sparc32.h \
${WRKSRC}/dyncallback/dyncall_args_mips.h \
${WRKSRC}/dyncallback/dyncall_args_ppc64.h \
${WRKSRC}/dyncallback/dyncall_args_ppc32.h \
${WRKSRC}/dyncallback/dyncall_args_arm32_thumb.h \
${WRKSRC}/dyncallback/dyncall_args_arm32_arm.h \
${WRKSRC}/dyncallback/dyncall_args.h \
${WRKSRC}/dynload/dynload.h \
${STAGEDIR}${PREFIX}/include
${INSTALL_DATA} \
${WRKSRC}/dyncall/libdyncall_s.a \
${WRKSRC}/dyncallback/libdyncallback_s.a \
${WRKSRC}/dynload/libdynload_s.a \
${STAGEDIR}${PREFIX}/lib
${INSTALL_MAN} \
${WRKSRC}/dyncall/dyncall.3 \
${WRKSRC}/dyncallback/dyncallback.3 \
${WRKSRC}/dynload/dynload.3 \
${STAGEDIR}${MAN3PREFIX}/man/man3
.include <bsd.port.post.mk>