Lines 535-542
Link Here
|
535 |
# Various directory definitions and variables to control them. |
535 |
# Various directory definitions and variables to control them. |
536 |
# You rarely need to redefine any of these except WRKSRC and NO_WRKSUBDIR. |
536 |
# You rarely need to redefine any of these except WRKSRC and NO_WRKSUBDIR. |
537 |
# |
537 |
# |
538 |
# X11BASE - Where X11 ports install things. |
|
|
539 |
# Default: ${LOCALBASE} |
540 |
# LOCALBASE - Where non-X11 ports install things. |
538 |
# LOCALBASE - Where non-X11 ports install things. |
541 |
# Default: /usr/local |
539 |
# Default: /usr/local |
542 |
# LINUXBASE - Where Linux ports install things. |
540 |
# LINUXBASE - Where Linux ports install things. |
Lines 1120-1126
Link Here
|
1120 |
# by individual Makefiles or local system make configuration. |
1118 |
# by individual Makefiles or local system make configuration. |
1121 |
PORTSDIR?= /usr/ports |
1119 |
PORTSDIR?= /usr/ports |
1122 |
LOCALBASE?= /usr/local |
1120 |
LOCALBASE?= /usr/local |
1123 |
X11BASE?= ${LOCALBASE} |
|
|
1124 |
LINUXBASE?= /compat/linux |
1121 |
LINUXBASE?= /compat/linux |
1125 |
DISTDIR?= ${PORTSDIR}/distfiles |
1122 |
DISTDIR?= ${PORTSDIR}/distfiles |
1126 |
_DISTDIR?= ${DISTDIR}/${DIST_SUBDIR} |
1123 |
_DISTDIR?= ${DISTDIR}/${DIST_SUBDIR} |
Lines 1369-1380
Link Here
|
1369 |
.include "${PORTSDIR}/Mk/bsd.linux-apps.mk" |
1366 |
.include "${PORTSDIR}/Mk/bsd.linux-apps.mk" |
1370 |
.endif |
1367 |
.endif |
1371 |
|
1368 |
|
1372 |
.if ${X11BASE} != ${LOCALBASE} |
|
|
1373 |
.BEGIN: |
1374 |
@${ECHO_MSG} "X11BASE is now deprecated. Unset X11BASE in make.conf and try again." |
1375 |
@${FALSE} |
1376 |
.endif |
1377 |
|
1378 |
.if defined(USE_XORG) || defined(XORG_CAT) |
1369 |
.if defined(USE_XORG) || defined(XORG_CAT) |
1379 |
.include "${PORTSDIR}/Mk/bsd.xorg.mk" |
1370 |
.include "${PORTSDIR}/Mk/bsd.xorg.mk" |
1380 |
.endif |
1371 |
.endif |
Lines 1564-1571
Link Here
|
1564 |
BUILD_WRKSRC?= ${WRKSRC} |
1555 |
BUILD_WRKSRC?= ${WRKSRC} |
1565 |
INSTALL_WRKSRC?=${WRKSRC} |
1556 |
INSTALL_WRKSRC?=${WRKSRC} |
1566 |
|
1557 |
|
1567 |
PLIST_SUB+= OSREL=${OSREL} PREFIX=%D LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} |
1558 |
PLIST_SUB+= OSREL=${OSREL} PREFIX=%D LOCALBASE=${LOCALBASE} |
1568 |
SUB_LIST+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} \ |
1559 |
SUB_LIST+= PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} \ |
1569 |
DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR} \ |
1560 |
DATADIR=${DATADIR} DOCSDIR=${DOCSDIR} EXAMPLESDIR=${EXAMPLESDIR} \ |
1570 |
WWWDIR=${WWWDIR} ETCDIR=${ETCDIR} |
1561 |
WWWDIR=${WWWDIR} ETCDIR=${ETCDIR} |
1571 |
|
1562 |
|
Lines 1938-1946
Link Here
|
1938 |
|
1929 |
|
1939 |
.if defined(USE_DISPLAY) && !defined(DISPLAY) |
1930 |
.if defined(USE_DISPLAY) && !defined(DISPLAY) |
1940 |
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \ |
1931 |
BUILD_DEPENDS+= Xvfb:${X_VFBSERVER_PORT} \ |
1941 |
${X11BASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT} \ |
1932 |
${LOCALBASE}/lib/X11/fonts/misc/8x13O.pcf.gz:${X_FONTS_MISC_PORT} \ |
1942 |
${X11BASE}/lib/X11/fonts/misc/fonts.alias:${X_FONTS_ALIAS_PORT} \ |
1933 |
${LOCALBASE}/lib/X11/fonts/misc/fonts.alias:${X_FONTS_ALIAS_PORT} \ |
1943 |
${X11BASE}/share/X11/xkb/rules/base:${PORTSDIR}/x11/xkeyboard-config \ |
1934 |
${LOCALBASE}/share/X11/xkb/rules/base:${PORTSDIR}/x11/xkeyboard-config \ |
1944 |
xkbcomp:${PORTSDIR}/x11/xkbcomp |
1935 |
xkbcomp:${PORTSDIR}/x11/xkbcomp |
1945 |
.if !defined(PACKAGE_BUILDING) |
1936 |
.if !defined(PACKAGE_BUILDING) |
1946 |
CONFIGURE_ENV+= DISPLAY="localhost:1001" |
1937 |
CONFIGURE_ENV+= DISPLAY="localhost:1001" |
Lines 2100-2114
Link Here
|
2100 |
. if defined(USE_LINUX) |
2091 |
. if defined(USE_LINUX) |
2101 |
RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1:${PORTSDIR}/x11/linux-xorg-libs |
2092 |
RUN_DEPENDS+= ${LINUXBASE}/usr/X11R6/lib/libXrender.so.1:${PORTSDIR}/x11/linux-xorg-libs |
2102 |
. else |
2093 |
. else |
2103 |
BUILD_DEPENDS+= ${X11BASE}/libdata/xorg/libraries:${X_LIBRARIES_PORT} |
2094 |
BUILD_DEPENDS+= ${LOCALBASE}/libdata/xorg/libraries:${X_LIBRARIES_PORT} |
2104 |
RUN_DEPENDS+= ${X11BASE}/libdata/xorg/libraries:${X_LIBRARIES_PORT} |
2095 |
RUN_DEPENDS+= ${LOCALBASE}/libdata/xorg/libraries:${X_LIBRARIES_PORT} |
2105 |
. endif |
2096 |
. endif |
2106 |
.endif |
2097 |
.endif |
2107 |
|
2098 |
|
2108 |
.if defined(USE_XLIB) || defined(USE_XORG) |
2099 |
.if defined(USE_XLIB) || defined(USE_XORG) |
2109 |
# Add explicit X options to avoid problems with false positives in configure |
2100 |
# Add explicit X options to avoid problems with false positives in configure |
2110 |
.if defined(GNU_CONFIGURE) |
2101 |
.if defined(GNU_CONFIGURE) |
2111 |
CONFIGURE_ARGS+=--x-libraries=${X11BASE}/lib --x-includes=${X11BASE}/include |
2102 |
CONFIGURE_ARGS+=--x-libraries=${LOCALBASE}/lib --x-includes=${LOCALBASE}/include |
2112 |
.endif |
2103 |
.endif |
2113 |
.endif |
2104 |
.endif |
2114 |
|
2105 |
|
Lines 2196-2202
Link Here
|
2196 |
MAKE_FLAGS?= -f |
2187 |
MAKE_FLAGS?= -f |
2197 |
MAKEFILE?= Makefile |
2188 |
MAKEFILE?= Makefile |
2198 |
MAKE_ENV+= PREFIX=${PREFIX} \ |
2189 |
MAKE_ENV+= PREFIX=${PREFIX} \ |
2199 |
LOCALBASE=${LOCALBASE} X11BASE=${X11BASE} \ |
2190 |
LOCALBASE=${LOCALBASE} \ |
2200 |
MOTIFLIB="${MOTIFLIB}" LIBDIR="${LIBDIR}" \ |
2191 |
MOTIFLIB="${MOTIFLIB}" LIBDIR="${LIBDIR}" \ |
2201 |
CC="${CC}" CFLAGS="${CFLAGS}" \ |
2192 |
CC="${CC}" CFLAGS="${CFLAGS}" \ |
2202 |
CPP="${CPP}" CPPFLAGS="${CPPFLAGS}" \ |
2193 |
CPP="${CPP}" CPPFLAGS="${CPPFLAGS}" \ |
Lines 2438-2444
Link Here
|
2438 |
# where pkg_add records its dirty deeds. |
2429 |
# where pkg_add records its dirty deeds. |
2439 |
PKG_DBDIR?= /var/db/pkg |
2430 |
PKG_DBDIR?= /var/db/pkg |
2440 |
|
2431 |
|
2441 |
MOTIFLIB?= -L${X11BASE}/lib -lXm -lXp |
2432 |
MOTIFLIB?= -L${LOCALBASE}/lib -lXm -lXp |
2442 |
|
2433 |
|
2443 |
ALL_TARGET?= all |
2434 |
ALL_TARGET?= all |
2444 |
INSTALL_TARGET?= install |
2435 |
INSTALL_TARGET?= install |
Lines 2949-2956
Link Here
|
2949 |
SCRIPTS_ENV+= CURDIR=${MASTERDIR} DISTDIR=${DISTDIR} \ |
2940 |
SCRIPTS_ENV+= CURDIR=${MASTERDIR} DISTDIR=${DISTDIR} \ |
2950 |
WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} PATCHDIR=${PATCHDIR} \ |
2941 |
WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} PATCHDIR=${PATCHDIR} \ |
2951 |
SCRIPTDIR=${SCRIPTDIR} FILESDIR=${FILESDIR} \ |
2942 |
SCRIPTDIR=${SCRIPTDIR} FILESDIR=${FILESDIR} \ |
2952 |
PORTSDIR=${PORTSDIR} PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} \ |
2943 |
PORTSDIR=${PORTSDIR} PREFIX=${PREFIX} LOCALBASE=${LOCALBASE} |
2953 |
X11BASE=${X11BASE} |
|
|
2954 |
|
2944 |
|
2955 |
.if defined(BATCH) |
2945 |
.if defined(BATCH) |
2956 |
SCRIPTS_ENV+= BATCH=yes |
2946 |
SCRIPTS_ENV+= BATCH=yes |
Lines 3259-3265
Link Here
|
3259 |
DISTDIR=${DISTDIR} WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} \ |
3249 |
DISTDIR=${DISTDIR} WRKDIR=${WRKDIR} WRKSRC=${WRKSRC} \ |
3260 |
PATCHDIR=${PATCHDIR} SCRIPTDIR=${SCRIPTDIR} \ |
3250 |
PATCHDIR=${PATCHDIR} SCRIPTDIR=${SCRIPTDIR} \ |
3261 |
FILESDIR=${FILESDIR} PORTSDIR=${PORTSDIR} PREFIX=${PREFIX} \ |
3251 |
FILESDIR=${FILESDIR} PORTSDIR=${PORTSDIR} PREFIX=${PREFIX} \ |
3262 |
BUILD_DEPENDS="${BUILD_DEPENDS}" RUN_DEPENDS="${RUN_DEPENDS}" X11BASE=${X11BASE} \ |
3252 |
BUILD_DEPENDS="${BUILD_DEPENDS}" RUN_DEPENDS="${RUN_DEPENDS}" \ |
3263 |
CONFLICTS="${CONFLICTS}" \ |
3253 |
CONFLICTS="${CONFLICTS}" \ |
3264 |
${ALL_HOOK} |
3254 |
${ALL_HOOK} |
3265 |
.endif |
3255 |
.endif |
Lines 5760-5766
Link Here
|
5760 |
.endif |
5750 |
.endif |
5761 |
.if (${PREFIX} != "/usr") |
5751 |
.if (${PREFIX} != "/usr") |
5762 |
@${ECHO_CMD} "@unexec if [ -f %D/${INFO_PATH}/dir ]; then if sed -e '1,/Menu:/d' %D/${INFO_PATH}/dir | grep -q '^[*] '; then true; else rm %D/${INFO_PATH}/dir; fi; fi" >> ${TMPPLIST} |
5752 |
@${ECHO_CMD} "@unexec if [ -f %D/${INFO_PATH}/dir ]; then if sed -e '1,/Menu:/d' %D/${INFO_PATH}/dir | grep -q '^[*] '; then true; else rm %D/${INFO_PATH}/dir; fi; fi" >> ${TMPPLIST} |
5763 |
.if (${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${X11BASE} && ${PREFIX} != ${LINUXBASE}) |
5753 |
.if (${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${LINUXBASE}) |
5764 |
@${ECHO_CMD} "@unexec rmdir %D/${INFO_PATH} 2>/dev/null || true" >> ${TMPPLIST} |
5754 |
@${ECHO_CMD} "@unexec rmdir %D/${INFO_PATH} 2>/dev/null || true" >> ${TMPPLIST} |
5765 |
.endif |
5755 |
.endif |
5766 |
.endif |
5756 |
.endif |
Lines 5771-5777
Link Here
|
5771 |
# deinstall-time |
5761 |
# deinstall-time |
5772 |
.if !target(add-plist-post) |
5762 |
.if !target(add-plist-post) |
5773 |
add-plist-post: |
5763 |
add-plist-post: |
5774 |
.if (${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${X11BASE} && ${PREFIX} != ${LINUXBASE} && ${PREFIX} != "/usr") |
5764 |
.if (${PREFIX} != ${LOCALBASE} && ${PREFIX} != ${LINUXBASE} && ${PREFIX} != "/usr") |
5775 |
@${ECHO_CMD} "@unexec rmdir %D 2> /dev/null || true" >> ${TMPPLIST} |
5765 |
@${ECHO_CMD} "@unexec rmdir %D 2> /dev/null || true" >> ${TMPPLIST} |
5776 |
.else |
5766 |
.else |
5777 |
@${DO_NADA} |
5767 |
@${DO_NADA} |