diff options
Diffstat (limited to 'lang/gcc')
-rw-r--r-- | lang/gcc/Makefile | 4 | ||||
-rw-r--r-- | lang/gcc/files/gcc.sh.in | 14 | ||||
-rw-r--r-- | lang/gcc/pkg-plist | 1 |
3 files changed, 19 insertions, 0 deletions
diff --git a/lang/gcc/Makefile b/lang/gcc/Makefile index f8cfb0e9a587..b77324cd4827 100644 --- a/lang/gcc/Makefile +++ b/lang/gcc/Makefile @@ -76,6 +76,9 @@ MAKE_ARGS+= MAKEINFOFLAGS="--no-split" ALL_TARGET= bootstrap INSTALLS_SHLIB= yes LDCONFIG_DIRS= ${TARGLIB} +SUB_LIST= TARGLIB="${TARGLIB}" +SUB_FILES= gcc.sh +RC_D_SH= etc/rc.d/gcc${SUFFIX}.sh PLIST_SUB= GCC_VER=${PORTVERSION} GNU_HOST=${CONFIGURE_TARGET} \ SUFFIX=${SUFFIX} MAN1= cpp${SUFFIX}.1 \ @@ -149,6 +152,7 @@ check: build cd ${WRKSRC}; export RUNTESTFLAGS='--target_board ''unix{-pthread}'''; ${GMAKE} -sk check post-install: + ${INSTALL_SCRIPT} ${WRKDIR}/gcc.sh ${PREFIX}/${RC_D_SH} # man pages can only be generated if Perl >= 5.6 is installed; # fake them otherwise. for mp in ${_MANPAGES}; do \ diff --git a/lang/gcc/files/gcc.sh.in b/lang/gcc/files/gcc.sh.in new file mode 100644 index 000000000000..987e9531e371 --- /dev/null +++ b/lang/gcc/files/gcc.sh.in @@ -0,0 +1,14 @@ +#!/bin/sh + +case "$1" in +start) + ldconfig -m %%TARGLIB%% + ;; +stop) + ;; +*) + echo "Usage: ${0##*/} { start | stop }" >&2 + exit 64 + ;; +esac +exit 0 diff --git a/lang/gcc/pkg-plist b/lang/gcc/pkg-plist index c354ad32d65c..f79172c39695 100644 --- a/lang/gcc/pkg-plist +++ b/lang/gcc/pkg-plist @@ -9,6 +9,7 @@ bin/%%GNU_HOST%%-c++%%SUFFIX%% bin/%%GNU_HOST%%-g++%%SUFFIX%% bin/%%GNU_HOST%%-gcc-%%GCC_VER%% bin/%%GNU_HOST%%-gcc%%SUFFIX%% +etc/rc.d/gcc%%SUFFIX%%.sh include/omp.h info/gcc%%SUFFIX%%/dir %%FORTRAN%%bin/gfortran%%SUFFIX%% |