diff options
author | dinoex <dinoex@FreeBSD.org> | 2006-09-11 00:41:27 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2006-09-11 00:41:27 +0800 |
commit | 1c257ded0483026cc99a32d864876cdd425421b4 (patch) | |
tree | a6ca424fa424956045f79221de19c3660a6e86c2 /Mk | |
parent | c85032de806a780c60e7bd063151fcd3cb6fb959 (diff) | |
download | freebsd-ports-gnome-1c257ded0483026cc99a32d864876cdd425421b4.tar.gz freebsd-ports-gnome-1c257ded0483026cc99a32d864876cdd425421b4.tar.zst freebsd-ports-gnome-1c257ded0483026cc99a32d864876cdd425421b4.zip |
- order dependencies
- new options for ports:
USE_GNUSTEP_SYSTEM_LIBS
USE_GNUSTEP_LOCAL_LIBS
each can hold mutiple definitions, like:
USE_GNUSTEP_SYSTEM_LIBS+= Renaissance:${RENAISSANCE_PORT}
USE_GNUSTEP_SYSTEM_LIBS+= Renaissance:x11-toolkits/renaissance
USE_GNUSTEP_LOCAL_LIBS+= Pantomime:${PANTOMIME_PORT}
USE_GNUSTEP_LOCAL_LIBS+= Addresses:${ADDRESSES_PORT}
USE_GNUSTEP_LOCAL_LIBS+= SlideShow:${SLIDESHOWKIT_PORT}
USE_GNUSTEP_LOCAL_LIBS+= netclasses:${NETCLASSES_PORT}
Diffstat (limited to 'Mk')
-rw-r--r-- | Mk/bsd.gnustep.mk | 38 |
1 files changed, 34 insertions, 4 deletions
diff --git a/Mk/bsd.gnustep.mk b/Mk/bsd.gnustep.mk index 96fa5f1da7d0..955305260931 100644 --- a/Mk/bsd.gnustep.mk +++ b/Mk/bsd.gnustep.mk @@ -63,6 +63,12 @@ # USE_GNUSTEP_INSTALL=yes # call install target with GNUstep.sh sourced in the current shell # +# USE_GNUSTEP_SYSTEM_LIBS= Renaissance:x11-toolkits/renaissance +# depends on a shared lib in System directrory +# +# USE_GNUSTEP_LOCAL_LIBS= pantomime:mail/pantomime +# depends on a shared lib in Local directrory +# # --------------------------------------------------------------------------- .if !defined(_POSTMKINCLUDED) @@ -80,6 +86,13 @@ RUN_DEPENDS+= ${COMBOLIBDIR}/libobjc.so:${PORTSDIR}/${GNUSTEP_OBJC_PORT} .endif .endif +.if defined(USE_GNUSTEP_BUILD) +BUILD_DEPENDS+= ${SYSMAKEDIR}/GNUstep.sh:${PORTSDIR}/${GNUSTEP_MAKE_PORT} +.endif +.if defined(USE_GNUSTEP_INSTALL) +RUN_DEPENDS+= ${SYSMAKEDIR}/GNUstep.sh:${PORTSDIR}/${GNUSTEP_MAKE_PORT} +.endif + GNUSTEP_MAKE_PORT?= devel/gnustep-make GNUSTEP_OBJC_PORT?= lang/gnustep-objc GNUSTEP_BASE_PORT?= lang/gnustep-base @@ -234,6 +247,27 @@ MAKE_FLAGS+= GUI_BACKEND_LIB=cairo .endif # --------------------------------------------------------------------------- +# source system liibs +# +.if defined(USE_GNUSTEP_SYSTEM_LIBS) +.for _GNUSTEP_DEP in ${USE_GNUSTEP_SYSTEM_LIBS} +BUILD_DEPENDS+= ${COMBOLIBDIR}/lib${_GNUSTEP_DEP:C/:.*//}.so:${PORTSDIR}/${_GNUSTEP_DEP:C/.*://} +RUN_DEPENDS+= ${COMBOLIBDIR}/lib${_GNUSTEP_DEP:C/:.*//}.so:${PORTSDIR}/${_GNUSTEP_DEP:C/.*://} +.endfor +.endif + +# --------------------------------------------------------------------------- +# source local liibs +# +:C/[.][0-9]*$//1 +.if defined(USE_GNUSTEP_LOCAL_LIBS) +.for _GNUSTEP_DEP in ${USE_GNUSTEP_LOCAL_LIBS} +BUILD_DEPENDS+= ${LOCALLIBDIR}/lib${_GNUSTEP_DEP:C/:.*//}.so:${PORTSDIR}/${_GNUSTEP_DEP:C/.*://} +RUN_DEPENDS+= ${LOCALLIBDIR}/lib${_GNUSTEP_DEP:C/:.*//}.so:${PORTSDIR}/${_GNUSTEP_DEP:C/.*://} +.endfor +.endif + +# --------------------------------------------------------------------------- # source GNUstep.sh # .if defined(USE_GNUSTEP_CONFIGURE) @@ -260,8 +294,6 @@ do-configure: # source GNUstep.sh # .if defined(USE_GNUSTEP_BUILD) -BUILD_DEPENDS+= ${SYSMAKEDIR}/GNUstep.sh:${PORTSDIR}/${GNUSTEP_MAKE_PORT} - do-build: @(cd ${WRKSRC}; . ${SYSMAKEDIR}/GNUstep.sh; \ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${ALL_TARGET}) @@ -272,8 +304,6 @@ do-build: # source GNUstep.sh # .if defined(USE_GNUSTEP_INSTALL) -RUN_DEPENDS+= ${SYSMAKEDIR}/GNUstep.sh:${PORTSDIR}/${GNUSTEP_MAKE_PORT} - do-install: @(cd ${WRKSRC}; . ${SYSMAKEDIR}/GNUstep.sh; \ ${SETENV} ${MAKE_ENV} ${GMAKE} ${MAKE_FLAGS} ${MAKEFILE} ${INSTALL_TARGET}) |