mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
- cleanup after gcc updates
no hacks for ldconfig needed
This commit is contained in:
parent
f913a96867
commit
8d7e99571b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=159130
@ -31,25 +31,7 @@ CONFIGURE_ARGS+= --with-config-file=${PREFIX}/GNUstep.conf
|
||||
GNUSTEP_WITHOUT_LIBOBJC= yes
|
||||
.endif
|
||||
|
||||
.include <bsd.port.pre.mk>
|
||||
|
||||
.if !defined(GNUSTEP_WITH_BASE_GCC)
|
||||
pre-configure:
|
||||
@if test ! -f "${TARGLIB}/libobjc.so"; then \
|
||||
${ECHO_MSG} "libobjc.so not found, please update your gcc"; \
|
||||
${FALSE}; \
|
||||
fi; \
|
||||
if test `${LDCONFIG} -r | ${GREP} "${TARGLIB}/libobjc.so" | wc -l` -eq 0; then \
|
||||
${ECHO_MSG} "trying to fix ldconfig.hints"; \
|
||||
${LDCONFIG} -f "${WRKDIR}/ldconfig.hints" -m "${TARGLIB}";\
|
||||
if test `${LDCONFIG} -f "${WRKDIR}/ldconfig.hints" -r | ${GREP} "${TARGLIB}/libobjc.so" | wc -l` -eq 0; then \
|
||||
${ECHO_MSG} "libobjc.so not in path"; \
|
||||
${FALSE}; \
|
||||
fi; \
|
||||
fi;
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
${LN} -s Library/Makefiles ${PREFIX}/System/
|
||||
|
||||
.include <bsd.port.post.mk>
|
||||
.include <bsd.port.mk>
|
||||
|
@ -58,11 +58,6 @@ EXTRA_PATCHES+= ${FILESDIR}/NSFileManager.m.patch
|
||||
|
||||
PATH:= ${PREFIX}/System/Tools:${PATH}
|
||||
|
||||
.if !defined(GNUSTEP_WITH_BASE_GCC)
|
||||
pre-configure:
|
||||
${LDCONFIG} -m ${TARGLIB}
|
||||
.endif
|
||||
|
||||
post-build:
|
||||
.for i in ${MAKE_APPS}
|
||||
(cd ${WRKSRC}/${i}; . ${SYSMAKEDIR}/GNUstep.sh; \
|
||||
@ -71,7 +66,7 @@ post-build:
|
||||
|
||||
post-extract:
|
||||
@${SED} -e "s=%%PREFIX%%=${LOCALBASE}=" \
|
||||
-e "s=%%TARGLIB%%=${TARGLIB}=" ${FILESDIR}/GNUstep.sh \
|
||||
${FILESDIR}/GNUstep.sh \
|
||||
> ${WRKSRC}/GNUstep.sh
|
||||
|
||||
post-install:
|
||||
|
@ -8,7 +8,6 @@ GNUSTEP_SYSTEM_ROOT="${PREFIX}/GNUstep/System"
|
||||
case "$1" in
|
||||
start)
|
||||
if [ -e ${GNUSTEP_SYSTEM_ROOT}/Library/Makefiles/GNUstep.sh ]; then
|
||||
ldconfig -m %%TARGLIB%%
|
||||
. ${GNUSTEP_SYSTEM_ROOT}/Library/Makefiles/GNUstep.sh
|
||||
rm -f ${PIDFILE}
|
||||
opentool gdomap -a ${IFFILE} -I ${PIDFILE}
|
||||
|
Loading…
Reference in New Issue
Block a user