1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/lang/libobjc2/Makefile
Piotr Kubaj c7e23ade67 lang/libobjc2: fix build on armv7
armv7 needs LDFLAGS+=-Wl,-znotext.

PR:		239744
Approved by:	theraven (maintainer timeout), tcberner (mentor)
Differential Revision:	https://reviews.freebsd.org/D21429
2019-08-28 17:17:13 +00:00

43 lines
973 B
Makefile

# Created by: Pete French <pete@twisted.org.uk>
# $FreeBSD$
PORTNAME= libobjc2
PORTVERSION= 2.0
PORTREVISION= 1
CATEGORIES= lang devel gnustep
MAINTAINER= theraven@FreeBSD.org
COMMENT= Replacement Objective-C runtime supporting modern Objective-C features
LICENSE= MIT
BROKEN_powerpc= Does not compile on powerpc: Unsupported relocation type 10
BROKEN_sparc64= Does not compile on sparc64: Cannot configure clang properly
USES= cmake compiler objc:compiler
USE_GITHUB= yes
GH_ACCOUNT= gnustep
GH_TAGNAME= 0db500a
SSP_UNSAFE= yes
LDFLAGS_armv7= -Wl,-znotext
SHLIB_MAJOR= 4
SHLIB_MINOR= 6
PLIST_SUB+= SHLIB_MAJOR=${SHLIB_MAJOR} SHLIB_MINOR=${SHLIB_MINOR}
CMAKE_ARGS+= -DLIB_INSTALL_PATH=lib
CMAKE_ARGS+= -DTESTS=OFF
.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>