freebsd-ports/x11-toolkits/xclasses/files/patch-ac
Trevor Johnson ae626a5bf5 Respect CXX and CXXFLAGS
Add INSTALLS_SHLIB, USE_GMAKE, and USE_XPM.

PR:		22032
Submitted by:	Kato Tsuguru
2000-10-16 23:16:08 +00:00

53 lines
1.3 KiB
Text

--- build.orig Thu Jun 8 00:13:13 2000
+++ build Sun Oct 1 03:15:10 2000
@@ -57,29 +57,25 @@
rm -f Rules
rm -f Rules.make
- INCLUDESDIR=${XCLASSESINCLUDE:-"/usr/local/include"}
- LIBSDIR=${XCLASSESLIB:-"/usr/local/lib"}
- CONFIGSDIR=${XCLASSESCONFIG:-"/usr/lib/X11/Xclasses"}
+ INCLUDESDIR=%%X11BASE%%/include/
+ LIBSDIR=%%X11BASE%%/lib/
+ CONFIGSDIR=%%X11BASE%%/share/Xclasses/
ROOTID=0
if [ "$2" != "quit" ]; then
echo -n "includes dir [$INCLUDESDIR] :"
- read R
if [ -n "$R" ]; then
INCLUDESDIR="$R"
fi
echo -n "libs dir [$LIBSDIR] :"
- read R
if [ -n "$R" ]; then
LIBSDIR="$R"
fi
echo -n "configs dir [$CONFIGSDIR] :"
- read R
if [ -n "$R" ]; then
CONFIGSDIR="$R"
fi
echo -n "root id (Xclasses owner) [$ROOTID] :"
- read R
if [ -n "$R" ]; then
ROOTID="$R"
fi
@@ -100,7 +96,7 @@
# look for installed XPM lib
MAKEXPM="y"
- for N in /usr/include/X11 /usr/local/include/X11
+ for N in %%X11BASE%%/include/X11/
do
if [ -f "$N/xpm.h" ]; then
MAKEXPM="n"
@@ -112,7 +108,7 @@
fi
# look for shapes
- if [ -f "/usr/include/X11/extensions/shape.h" ]; then
+ if [ -f "%%X11BASE%%/include/X11/extensions/shape.h" ]; then
USESHAPE="y"
else
USESHAPE="n"