mirror of
https://github.com/Stichting-MINIX-Research-Foundation/pkgsrc-ng.git
synced 2025-09-12 22:13:47 -04:00
100 lines
3.4 KiB
Plaintext
100 lines
3.4 KiB
Plaintext
$NetBSD: patch-ac,v 1.5 2013/10/10 18:27:37 roy Exp $
|
|
|
|
--- tads3/Makefile.orig 2005-03-05 10:44:48.000000000 +0000
|
|
+++ tads3/Makefile
|
|
@@ -14,9 +14,9 @@
|
|
# Installation points for TADS3. Tailor these to your liking. If you install
|
|
# manually, DATADIR must match where you actually put the libraries and
|
|
# resources, or the TADS3 compiler will not be able to find them.
|
|
-PREFIX = /usr/local
|
|
+#PREFIX = /usr/local
|
|
BINDIR = $(PREFIX)/bin
|
|
-DOCDIR = $(PREFIX)/doc/tads3
|
|
+DOCDIR = $(PREFIX)/share/doc/html/tads3
|
|
DATADIR = $(PREFIX)/share/tads3
|
|
LIBDIR = $(DATADIR)/libraries
|
|
INCDIR = $(DATADIR)/includes
|
|
@@ -117,6 +117,25 @@ RESDIR = $(DATADIR)/resources
|
|
#DISPLAY_LIB = -ltermcap
|
|
|
|
###########################################################################
|
|
+# NetBSD
|
|
+# Compiled and tested on NetBSD 1.6
|
|
+# Maintainer:
|
|
+#
|
|
+# Uncomment -fno-exceptions from CXX_OPTIMIZE if you have a reasonably
|
|
+# current (> 2.7) version of g++.
|
|
+###########################################################################
|
|
+#
|
|
+.if ${OPSYS} == "NetBSD"
|
|
+CXX = g++
|
|
+CC = gcc
|
|
+IDENT = -DOS_SYSTEM_NAME=\"NetBSD\"
|
|
+OPTIMIZE = -O2
|
|
+CXX_OPTIMIZE = -fno-exceptions
|
|
+OS_FLAGS = -DOS_ANSI -DHAVE_STRCASECMP -Dmemicmp=strncasecmp -I./BSD
|
|
+DISPLAY_LIB = -ltermcap
|
|
+.endif
|
|
+
|
|
+###########################################################################
|
|
# OpenBSD
|
|
# Compiled and tested on OpenBSD 3.0
|
|
# Maintainer: Mark Wickham (macwickham@attbi.com)
|
|
@@ -216,18 +235,46 @@ MKCHRTAB_OBJS = mkchrtab.o $(T2_DIR)/osu
|
|
all: t3make t3run t23run t3pre t3res mkchrtab
|
|
|
|
install: all install-common
|
|
- install -s -m755 t3make t3run t23run t3res mkchrtab $(BINDIR)
|
|
+ ${BSD_INSTALL_PROGRAM} t3make ${DESTDIR}$(BINDIR)
|
|
+ ${BSD_INSTALL_PROGRAM} t3run ${DESTDIR}$(BINDIR)
|
|
+ ${BSD_INSTALL_PROGRAM} t23run ${DESTDIR}$(BINDIR)
|
|
+ ${BSD_INSTALL_PROGRAM} t3res ${DESTDIR}$(BINDIR)
|
|
+ ${BSD_INSTALL_PROGRAM} mkchrtab ${DESTDIR}$(BINDIR)
|
|
|
|
install-common: all
|
|
- install -d $(BINDIR)
|
|
- install -d $(DOCDIR)
|
|
- install -d $(DATADIR)
|
|
- rm -rf $(INCDIR) $(LIBDIR) $(RESDIR) $(DOCDIR)
|
|
- cp -rp t3include $(INCDIR)
|
|
- cp -rp t3library $(LIBDIR)
|
|
- cp -rp t3resource $(RESDIR)
|
|
- cp -rp doc $(DOCDIR)
|
|
- -chown -fR root.root $(INCDIR) $(LIBDIR) $(RESDIR) $(DOCDIR)
|
|
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(DOCDIR)
|
|
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}$(DATADIR)
|
|
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${INCDIR}
|
|
+ for f in t3include/*; \
|
|
+ do \
|
|
+ ${BSD_INSTALL_DATA} $$f ${DESTDIR}${INCDIR}; \
|
|
+ done
|
|
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${LIBDIR}
|
|
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${LIBDIR}/adv3
|
|
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${LIBDIR}/adv3/en_us
|
|
+ for f in t3library/*.*; \
|
|
+ do \
|
|
+ ${BSD_INSTALL_DATA} $$f ${DESTDIR}${LIBDIR}; \
|
|
+ done
|
|
+ for f in t3library/adv3/*.*; \
|
|
+ do \
|
|
+ ${BSD_INSTALL_DATA} $$f ${DESTDIR}${LIBDIR}/adv3; \
|
|
+ done
|
|
+ for f in t3library/adv3/en_us/*.*; \
|
|
+ do \
|
|
+ ${BSD_INSTALL_DATA} $$f ${DESTDIR}${LIBDIR}/adv3/en_us; \
|
|
+ done
|
|
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${RESDIR}
|
|
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${RESDIR}/charmap
|
|
+ for f in t3resource/charmap/*; \
|
|
+ do \
|
|
+ ${BSD_INSTALL_DATA} $$f ${DESTDIR}${RESDIR}/charmap; \
|
|
+ done
|
|
+ ${BSD_INSTALL_DATA_DIR} ${DESTDIR}${DOCDIR}
|
|
+ for f in doc/*; \
|
|
+ do \
|
|
+ ${BSD_INSTALL_DATA} $$f ${DESTDIR}${DOCDIR}; \
|
|
+ done
|
|
|
|
clean:
|
|
rm -f *.o t3make t3run t23run t3pre t3res mkchrtab test_utf8 test_chr test_pool test_err test_obj test_write test_exec test_gets test_tok test_prs test_sym test_prs_top test_comp_obj test_link test_regex test_sort iter.t3s test.t3v
|