diff options
author | dinoex <dinoex@FreeBSD.org> | 2012-01-13 18:48:33 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2012-01-13 18:48:33 +0800 |
commit | b818285d2aedbd9f9697095e1a14e911487c6511 (patch) | |
tree | 1fb3a1ab92bb1aa94a7fb70c5370f6da6afb3eb6 /Mk | |
parent | b9499e844be372c47a7759bdd883c2aee33ffa70 (diff) | |
download | freebsd-ports-gnome-b818285d2aedbd9f9697095e1a14e911487c6511.tar.gz freebsd-ports-gnome-b818285d2aedbd9f9697095e1a14e911487c6511.tar.zst freebsd-ports-gnome-b818285d2aedbd9f9697095e1a14e911487c6511.zip |
- add option GNUSTEP_WITH_GCC46
- add option GNUSTEP_WITH_CLANG
GNUstep defaults to clang in FreeBSD9
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.gnustep.mk | 29 |
1 files changed, 25 insertions, 4 deletions
diff --git a/Mk/bsd.gnustep.mk b/Mk/bsd.gnustep.mk index 270665807eb3..ada65beb2037 100644 --- a/Mk/bsd.gnustep.mk +++ b/Mk/bsd.gnustep.mk @@ -26,6 +26,12 @@ # GNUSTEP_WITH_GCC42=yes # use gcc 4.2.x with objective C shared libraries (default). # +# GNUSTEP_WITH_GCC46=yes +# use gcc 4.6.x with objective C shared libraries. +# +# GNUSTEP_WITH_CLANG=yes +# use clang with objective C shared libraries. +# # # Options for a port before include this file: # ============================================ @@ -189,13 +195,24 @@ PLIST_SUB+= MAJORVERSION=${PORTVERSION:C/([0-9]).*/\1/1} PLIST_SUB+= LIBVERSION=${DEFAULT_LIBVERSION} PLIST_SUB+= MAJORLIBVERSION=${DEFAULT_LIBVERSION:C/([0-9]).*/\1/1} -.if !defined(GNUSTEP_WITH_GCC34) && !defined(GNUSTEP_WITH_GCC42) && !defined(GNUSTEP_WITH_BASE_GCC) +.if !defined(GNUSTEP_WITH_GCC34) && !defined(GNUSTEP_WITH_GCC42) && !defined(GNUSTEP_WITH_GCC46) && !defined(GNUSTEP_WITH_BASE_GCC) .if !exists(${DESTDIR}/usr/lib/libobjc.so) -GNUSTEP_WITH_GCC42=yes +GNUSTEP_WITH_GCC46=yes .endif .endif -.if defined(GNUSTEP_WITH_GCC34) || defined(GNUSTEP_WITH_GCC42) +.if defined(GNUSTEP_WITH_CLANG) +.if !exists(${DESTDIR}/usr/bin/clang) +BUILD_DEPENDS+= ${LOCALBASE}/bin/clang:${PORTSDIR}/lang/clang +CC= clang +CXX= clang++ +.else +# use clang in base +GNUSTEP_WITH_BASE_GCC=yes +.endif +LIB_DEPENDS+= objc:${PORTSDIR}/lang/libobjc2 +.else +.if defined(GNUSTEP_WITH_GCC34) || defined(GNUSTEP_WITH_GCC42) || defined(GNUSTEP_WITH_GCC46) .if defined(GNUSTEP_WITH_GCC34) GCCSUFFIX=34 .if ${ARCH} == sparc64 @@ -205,13 +222,17 @@ BROKEN= gcc34 does not build the required libobjc .if defined(GNUSTEP_WITH_GCC42) GCCSUFFIX=42 .endif +.if defined(GNUSTEP_WITH_GCC46) +GCCSUFFIX=46 +.endif CC= gcc${GCCSUFFIX} CXX= g++${GCCSUFFIX} GNUSTEP_GCC_PORT?= lang/gcc${GCCSUFFIX} BUILD_DEPENDS+= ${TARGLIB}/libobjc.so:${PORTSDIR}/${GNUSTEP_GCC_PORT} RUN_DEPENDS+= ${TARGLIB}/libobjc.so:${PORTSDIR}/${GNUSTEP_GCC_PORT} .else -GNUSTEP_WITH_BASE_GCC= yes +GNUSTEP_WITH_BASE_GCC=yes +.endif .endif # --------------------------------------------------------------------------- |