1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

- Use libobjc.so

- Cleanup
- Use bsd.gnustep.mk
- build with X11 by default
- add Option WITHOUT_X11
- Fix PLIST
PR:		50479
This commit is contained in:
Dirk Meyer 2003-04-13 07:34:29 +00:00
parent d7de4eaae2
commit 3361106f3b
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=78850
2 changed files with 40 additions and 38 deletions

View File

@ -16,58 +16,35 @@ MASTER_SITE_SUBDIR= libs
MAINTAINER= dinoex@FreeBSD.org
COMMENT= GNUstep interface to the GUILE scheme interpreter
BUILD_DEPENDS= ${COMBOLIBDIR}/libgnustep-base.so:${PORTSDIR}/lang/gnustep-base
BUILD_DEPENDS+= ${LOCALBASE}/lib/libcallback.a:${PORTSDIR}/devel/ffcall
RUN_DEPENDS= ${COMBOLIBDIR}/libgnustep-base.so:${PORTSDIR}/lang/gnustep-base
LIB_DEPENDS= guile.10:${PORTSDIR}/lang/guile
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 300000
BROKEN= "Sorry, this port does not work on FreeBSD-2.2.x"
.endif
LIB_DEPENDS+= guile.10:${PORTSDIR}/lang/guile
PREFIX= ${LOCALBASE}/GNUstep
NO_MTREE= yes
GNU_CONFIGURE= yes
CONFIGURE_TARGET=
USE_GMAKE= yes
MAKEFILE=
MAKE_FLAGS= OPTFLAG="${CFLAGS}"
NO_MTREE= yes
USE_GCC= 3.2
PLIST_SUB+= GUILE_VER="${GUILE_VER}"
MAN1= greg.1
.if ${MACHINE_ARCH} == "i386"
GNU_ARCH= ix86
.if defined(WITHOUT_X11)
PKGNAMESUFFIX?= -nox11
USE_GNUSTEP_BASE= yes
PLIST_SUB+= USEX11="@comment "
.else
GNU_ARCH= ${MACHINE_ARCH}
USE_GNUSTEP_BACK= yes
PLIST_SUB+= USEX11=""
.endif
PLIST_SUB+= GNU_ARCH=${GNU_ARCH} OPSYS=${OPSYS:L} VERSION=${PORTVERSION}
COMBOLIBDIR= ${PREFIX}/System/Libraries/${GNU_ARCH}/${OPSYS:L}/gnu-gnu-gnu
.include <bsd.port.pre.mk>
do-configure:
@(cd ${WRKSRC}; . ${PREFIX}/System/Makefiles/GNUstep.sh; \
if ! ${SETENV} CC="${CC}" CXX="${CXX}" \
CFLAGS="${CFLAGS}" CXXFLAGS="${CXXFLAGS}" \
INSTALL="/usr/bin/install -c -o ${BINOWN} -g ${BINGRP}" \
INSTALL_DATA="${INSTALL} -c" \
INSTALL_PROGRAM="${INSTALL} -c" \
INSTALL_SCRIPT="${INSTALL_SCRIPT}" \
${CONFIGURE_ENV} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}; then \
${ECHO} "===> Script \"${CONFIGURE_SCRIPT}\" failed: here are the contents of \"${CONFIGURE_LOG}\""; \
${CAT} ${CONFIGURE_LOG}; \
${ECHO} "(end of \"${CONFIGURE_LOG}\")"; \
${FALSE}; \
fi)
USE_GNUSTEP_CONFIGURE= yes
USE_GNUSTEP_BUILD= yes
USE_GNUSTEP_INSTALL= yes
.include "${PORTSDIR}/devel/gnustep/bsd.gnustep.mk"
do-build:
@(cd ${WRKSRC}; . ${PREFIX}/System/Makefiles/GNUstep.sh; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET})
do-install:
@(cd ${WRKSRC}; . ${PREFIX}/System/Makefiles/GNUstep.sh; \
${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET})
GUILE_VER!= (cd ${PORTSDIR}/lang/guile && make -V PORTVERSION)
.include <bsd.port.post.mk>

View File

@ -1,3 +1,15 @@
%%USEX11%%System/Applications/guile-gui.app/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/guile-gui
%%USEX11%%System/Applications/guile-gui.app/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/library_paths.openapp
%%USEX11%%System/Applications/guile-gui.app/Resources/Info-gnustep.plist
%%USEX11%%System/Applications/guile-gui.app/Resources/guile-gui.desktop
%%USEX11%%System/Applications/guile-gui.app/guile-gui
%%USEX11%%System/Applications/guile-gui.app/stamp.make
%%USEX11%%System/Applications/gui.app/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/gui
%%USEX11%%System/Applications/gui.app/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/library_paths.openapp
%%USEX11%%System/Applications/gui.app/Resources/Info-gnustep.plist
%%USEX11%%System/Applications/gui.app/Resources/gui.desktop
%%USEX11%%System/Applications/gui.app/gui
%%USEX11%%System/Applications/gui.app/stamp.make
System/Headers/ScriptKit/Guile.h
System/Headers/ScriptKit/GuileInterpreter.h
System/Headers/ScriptKit/GuileInvocation.h
@ -16,6 +28,7 @@ System/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/libScriptKit.so.1.0.0
System/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/libgg_base.so
System/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/libgg_base.so.%%VERSION%%
System/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/libgg_base.so.1
%%USEX11%%System/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/libgg_gui.so.%%VERSION%%
System/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/libgstep_guile.so
System/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/libgstep_guile.so.%%VERSION%%
System/Libraries/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu/libgstep_guile.so.1
@ -29,6 +42,16 @@ lib/libgreg.a
lib/libgreg.la
lib/libgreg.so
lib/libgreg.so.1
%%USEX11%%@dirrm System/Applications/guile-gui.app/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu
%%USEX11%%@dirrm System/Applications/guile-gui.app/%%GNU_ARCH%%/%%OPSYS%%
%%USEX11%%@dirrm System/Applications/guile-gui.app/%%GNU_ARCH%%
%%USEX11%%@dirrm System/Applications/guile-gui.app/Resources
%%USEX11%%@dirrm System/Applications/guile-gui.app
%%USEX11%%@dirrm System/Applications/gui.app/%%GNU_ARCH%%/%%OPSYS%%/gnu-gnu-gnu
%%USEX11%%@dirrm System/Applications/gui.app/%%GNU_ARCH%%/%%OPSYS%%
%%USEX11%%@dirrm System/Applications/gui.app/%%GNU_ARCH%%
%%USEX11%%@dirrm System/Applications/gui.app/Resources
%%USEX11%%@dirrm System/Applications/gui.app
@dirrm System/Libraries/Guile/languages/gstep-guile
@dirrm System/Libraries/Guile/languages
@dirrm System/Libraries/Guile
@ -39,3 +62,5 @@ lib/libgreg.so.1
@dirrm info
@dirrm man/man1
@dirrm man
@cwd %%LOCALBASE%%
share/guile/%%GUILE_VER%%/ice-9/greg.scm