summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-09-11 14:17:44 +0000
committerwiz <wiz@pkgsrc.org>2005-09-11 14:17:44 +0000
commit49a47e5b2a8307610b65718db4d49aba015dc3d0 (patch)
tree4d6fedc9564f3ce31777c7f97229f8fbe3bf0a9d /devel
parent9d9d8d461a08b267620e6fb7fbcd3537605bee78 (diff)
downloadpkgsrc-49a47e5b2a8307610b65718db4d49aba015dc3d0.tar.gz
PR 31268 by Tatsuya Kobayashi:
* The search paths for allegro's cfg files and modules are hardcoded, add the proper pkgsrc paths to them. * allegro uses 'ps' internally with '-f'. NetBSD doesn't have a '-f'. Remove it from the ps flags on NetBSD. Bump PKGREVISION.
Diffstat (limited to 'devel')
-rw-r--r--devel/allegro/Makefile9
-rw-r--r--devel/allegro/distinfo4
-rw-r--r--devel/allegro/patches/patch-ax37
-rw-r--r--devel/allegro/patches/patch-ay16
4 files changed, 63 insertions, 3 deletions
diff --git a/devel/allegro/Makefile b/devel/allegro/Makefile
index 1d70c121fd4..1be494c2a63 100644
--- a/devel/allegro/Makefile
+++ b/devel/allegro/Makefile
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.11 2005/06/01 18:02:42 jlam Exp $
+# $NetBSD: Makefile,v 1.12 2005/09/11 14:17:44 wiz Exp $
DISTNAME= allegro-4.1.18
+PKGREVISION= 1
CATEGORIES= devel
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=alleg/}
@@ -24,11 +25,15 @@ LIBS+= ${LIBOSSAUDIO}
.include "options.mk"
-SUBST_CLASSES= oss
+SUBST_CLASSES= oss path
SUBST_STAGE.oss= post-patch
SUBST_FILES.oss= src/unix/uoss.c setup/setup.c
SUBST_SED.oss= -e "s,/dev/dsp,${DEVOSSAUDIO},g"
SUBST_MESSAGE.oss= "Fixing harcoded audio device."
+SUBST_STAGE.path= post-patch
+SUBST_FILES.path= src/unix/umodules.c src/unix/usystem.c
+SUBST_SED.path= -e "s,@@PREFIX@@,${PREFIX},g"
+SUBST_MESSAGE.path= "Fixing harcoded path"
.include "../../mk/ossaudio.buildlink3.mk"
.include "../../mk/pthread.buildlink3.mk"
diff --git a/devel/allegro/distinfo b/devel/allegro/distinfo
index 51f395e4aa4..293adba3f39 100644
--- a/devel/allegro/distinfo
+++ b/devel/allegro/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2005/05/23 12:05:46 wiz Exp $
+$NetBSD: distinfo,v 1.8 2005/09/11 14:17:44 wiz Exp $
SHA1 (allegro-4.1.18.tar.gz) = 6bfed4fc3e5cfcd8ad8ab1dc1744023f0b5e702e
RMD160 (allegro-4.1.18.tar.gz) = 05dc8ca8783487c9cca694bc22f95a06e77d64fe
@@ -8,3 +8,5 @@ SHA1 (patch-ab) = a6681a0ef54a50db4726071ae75d88e33bee8fba
SHA1 (patch-ac) = 78f99723b095f460f20e8367fffb443a8f3d6ab6
SHA1 (patch-ad) = 52f694e1b0053cff94c53ee10f603d535eba5fa5
SHA1 (patch-ae) = 89839ee94e798c08d4121521a64a549d46535f74
+SHA1 (patch-ax) = 7c7e2dce2e1ab388832e56262686876dc52d3d42
+SHA1 (patch-ay) = 7f6d3d14acde2bbccb2d74062e3fd99f4c63011a
diff --git a/devel/allegro/patches/patch-ax b/devel/allegro/patches/patch-ax
new file mode 100644
index 00000000000..d5352f0b38e
--- /dev/null
+++ b/devel/allegro/patches/patch-ax
@@ -0,0 +1,37 @@
+$NetBSD: patch-ax,v 1.1 2005/09/11 14:17:44 wiz Exp $
+
+--- src/unix/usystem.c.orig 2005-09-08 11:51:43.000000000 +0900
++++ src/unix/usystem.c 2005-09-08 11:53:54.000000000 +0900
+@@ -130,6 +130,7 @@
+ }
+
+ /* if it is a .dat, look in /usr/share/ and /usr/local/share/ */
++ /* and @@PREFIX@@/share in NetBSD */
+ if (ustricmp(get_extension(resource), uconvert_ascii("dat", tmp)) == 0) {
+ ustrzcpy(buf, sizeof(buf), uconvert_ascii("/usr/share/allegro/", tmp));
+ ustrzcat(buf, sizeof(buf), resource);
+@@ -137,6 +138,12 @@
+ ustrzcpy(dest, size, buf);
+ return 0;
+ }
++ ustrzcpy(buf, sizeof(buf), uconvert_ascii("@@PREFIX@@/share/allegro/", tmp));
++ ustrzcat(buf, sizeof(buf), resource);
++ if (exists(buf)) {
++ ustrzcpy(dest, size, buf);
++ return 0;
++ }
+ ustrzcpy(buf, sizeof(buf), uconvert_ascii("/usr/local/share/allegro/", tmp));
+ ustrzcat(buf, sizeof(buf), resource);
+ if (exists(buf)) {
+@@ -376,7 +376,11 @@
+
+ /* Last resort: try using the output of the ps command to at least find */
+ /* the name of the file if not the full path */
++#ifdef __NetBSD__
++ uszprintf (linkname, sizeof(linkname), "ps -p %d", pid);
++#else
+ uszprintf (linkname, sizeof(linkname), "ps -f -p %d", pid);
++#endif
+ do_uconvert (linkname, U_CURRENT, filename, U_ASCII, size);
+ pipe = popen(filename, "r");
+ if (pipe) {
diff --git a/devel/allegro/patches/patch-ay b/devel/allegro/patches/patch-ay
new file mode 100644
index 00000000000..47e454ba99c
--- /dev/null
+++ b/devel/allegro/patches/patch-ay
@@ -0,0 +1,16 @@
+$NetBSD: patch-ay,v 1.1 2005/09/11 14:17:44 wiz Exp $
+
+--- src/unix/umodules.c.orig 2005-09-08 11:48:35.000000000 +0900
++++ src/unix/umodules.c 2005-09-08 11:53:04.000000000 +0900
+@@ -43,7 +43,10 @@
+ /* where to look for modules.lst */
+ static char *module_path[] =
+ {
+- "/usr/local/lib/allegro/", "/usr/lib/allegro/", NULL
++ "@@PREFIX@@/lib/allegro/",
++ "/usr/local/lib/allegro/",
++ "/usr/lib/allegro/",
++ NULL
+ };
+
+