1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-28 05:29:48 +00:00
freebsd-ports/lang/libobjc2/Makefile
2021-04-06 16:31:07 +02:00

49 lines
1.0 KiB
Makefile

# Created by: Pete French <pete@twisted.org.uk>
PORTNAME= libobjc2
DISTVERSIONPREFIX=v
DISTVERSION= 2.1
PORTREVISION= 3
CATEGORIES= lang devel gnustep
MAINTAINER= ports@FreeBSD.org
COMMENT= Replacement Objective-C runtime supporting modern Objective-C features
LICENSE= MIT
BROKEN_sparc64= Does not compile on sparc64: Cannot configure clang properly
BROKEN_riscv64= Does not link on riscv64: undefined symbol: objc_msgSend
USES= cmake compiler objc:compiler
USE_GITHUB= yes
GH_ACCOUNT= gnustep
GH_TUPLE= Tessil:robin-map:757de82:robin_map/third_party/robin-map
USE_LDCONFIG= yes
LDFLAGS+= -lm
TEST_TARGET= test
CMAKE_ARGS+= -DLIB_INSTALL_PATH=lib
LDFLAGS_armv7= -Wl,-znotext
SSP_UNSAFE= yes
PLIST_SUB+= SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR}
SHLIB_MAJOR= 4
SHLIB_MINOR= 6
.include <bsd.port.pre.mk>
.if ${CHOSEN_COMPILER_TYPE} == gcc
CXXFLAGS+= -stdlib=libstdc++
.endif
post-install:
${LN} -sf libobjc.so.${SHLIB_MAJOR}.${SHLIB_MINOR} ${STAGEDIR}${PREFIX}/lib/libobjc.so.${SHLIB_MAJOR}
.include <bsd.port.post.mk>