aboutsummaryrefslogtreecommitdiff
path: root/lang/libobjc2/Makefile
blob: 089701d58881d23e8d41a46bdea919cdd51412b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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

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 ${ARCH:Mpowerpc*} || ${ARCH:Mriscv64*}
CMAKE_ARGS+=	-DTESTS:BOOL=OFF
.endif

.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>