aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwill <will@FreeBSD.org>2000-06-30 04:05:45 +0800
committerwill <will@FreeBSD.org>2000-06-30 04:05:45 +0800
commit6df420f01b83286aff36f73af4c7d72158a3b5fa (patch)
treebba7bbce27fb1c52c7b3609e31ce4157b373e623
parent6f4188c874b99e95f6838f69cdda73c4b7a66575 (diff)
downloadfreebsd-ports-gnome-6df420f01b83286aff36f73af4c7d72158a3b5fa.tar.gz
freebsd-ports-gnome-6df420f01b83286aff36f73af4c7d72158a3b5fa.tar.zst
freebsd-ports-gnome-6df420f01b83286aff36f73af4c7d72158a3b5fa.zip
Add asp2php 0.75.1, a program that lets you convert ASP scripts to PHP. It
requires PHP 4.0. I've added (__PROPERLY DONE__) support to build the GTK frontend if users want it. =) Obtained from: NetBSD (plus an upgrade) Suggested by: kris
-rw-r--r--www/Makefile1
-rw-r--r--www/asp2php/Makefile46
-rw-r--r--www/asp2php/distinfo1
-rw-r--r--www/asp2php/files/patch-aa68
-rw-r--r--www/asp2php/pkg-comment1
-rw-r--r--www/asp2php/pkg-descr7
-rw-r--r--www/asp2php/pkg-plist3
7 files changed, 127 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 508709343408..3404ce28f641 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -15,6 +15,7 @@
SUBDIR += apache-jserv
SUBDIR += arena
SUBDIR += ashe # requires Motif
+ SUBDIR += asp2php
SUBDIR += aswedit
SUBDIR += bacon
SUBDIR += bkmrkconv
diff --git a/www/asp2php/Makefile b/www/asp2php/Makefile
new file mode 100644
index 000000000000..f3c4aa7e5ed9
--- /dev/null
+++ b/www/asp2php/Makefile
@@ -0,0 +1,46 @@
+# New ports collection makefile for: asp2php
+# Date created: Thu 29 Jun 2000
+# Whom: will
+#
+# $FreeBSD$
+#
+
+PORTNAME= asp2php
+PORTVERSION= 0.75.1
+CATEGORIES= www
+MASTER_SITES= http://home.i1.net/~naken/asp2php/
+DISTNAME= ${PORTNAME}${PORTVERSION}
+
+MAINTAINER= ports@FreeBSD.org
+
+.if defined(WANT_GTK)
+LIB_DEPENDS+= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12
+.endif
+
+GTK_CONFIG?= ${X11BASE}/bin/gtk12-config
+WRKSRC= ${WRKDIR}/${PORTNAME}
+MAKE_ENV+= GTK_CONFIG="${GTK_CONFIG}"
+ALL_TARGET= all
+INSTALL_TARGET= install
+
+.if defined(WANT_GTK)
+ALL_TARGET+= gtkasp2php
+INSTALL_TARGET+=install-gtk
+PLIST_SUB+= WANT_GTK=""
+.else
+PLIST_SUB+= WANT_GTK="@comment "
+.endif
+
+pre-fetch:
+ @${ECHO}
+.if !defined(WANT_GTK)
+ @${ECHO} "If you want the GTK frontend, define the WANT_GTK variable"
+ @${ECHO} "in your make args. For example:"
+ @${ECHO}
+ @${ECHO} " make -DWANT_GTK"
+.else
+ @${ECHO} "Building with GTK frontend."
+.endif
+ @${ECHO}
+
+.include <bsd.port.mk>
diff --git a/www/asp2php/distinfo b/www/asp2php/distinfo
new file mode 100644
index 000000000000..48d138dde5ef
--- /dev/null
+++ b/www/asp2php/distinfo
@@ -0,0 +1 @@
+MD5 (asp2php0.75.1.tar.gz) = 3c947f298329672091cab4e8d1b7bdf0
diff --git a/www/asp2php/files/patch-aa b/www/asp2php/files/patch-aa
new file mode 100644
index 000000000000..eb75b86c5b51
--- /dev/null
+++ b/www/asp2php/files/patch-aa
@@ -0,0 +1,68 @@
+--- Makefile Fri Jun 30 12:30:49 2000
++++ Makefile.new Thu Jun 29 15:50:22 2000
+@@ -1,24 +1,25 @@
+-
+-default:
+- gcc -c general.c
+- gcc -c conditionals.c
+- gcc -c database.c
+- gcc -c mysql.c
+- gcc -c sybase.c
+- gcc -c odbc.c
+- gcc -c oracle.c
+- gcc -c postgres.c
+- gcc -c evalelement.c
+- gcc -c gettoken.c
+- gcc -c html.c
+- gcc -c loops.c
+- gcc -c session.c
+- gcc -o asp2php asp2php.c conditionals.o database.o \
++CC ?= cc
++GTK_CONFIG ?= gtk12-config
++INSTALL_PROGRAM ?= install -c -s -o root -g wheel -m 755
++
++all:
++ $(CC) -c general.c
++ $(CC) -c conditionals.c
++ $(CC) -c database.c
++ $(CC) -c mysql.c
++ $(CC) -c sybase.c
++ $(CC) -c odbc.c
++ $(CC) -c oracle.c
++ $(CC) -c postgres.c
++ $(CC) -c evalelement.c
++ $(CC) -c gettoken.c
++ $(CC) -c html.c
++ $(CC) -c loops.c
++ $(CC) -c session.c
++ $(CC) -o asp2php asp2php.c conditionals.o database.o \
+ evalelement.o gettoken.o html.o loops.o mysql.o\
+ sybase.o odbc.o oracle.o postgres.o session.o general.o
+- gcc -o unipiss unipiss.c html.o
+- @echo ""
+- @echo "Done! You may type: make gtkasp2php for the optional GUI now"
++ $(CC) -o unipiss unipiss.c html.o
+
+ clean:
+ @if [ -e database.o ]; then rm *.o; fi;
+@@ -28,15 +29,11 @@
+ @echo "Clean!"
+
+ gtkasp2php: gtkasp2php.c
+- gcc -o gtkasp2php gtkasp2php.c `gtk-config --cflags` `gtk-config --libs`
++ $(CC) -o gtkasp2php gtkasp2php.c `$(GTK_CONFIG) --cflags` `$(GTK_CONFIG) --libs`
+
+ install:
+- cp asp2php /usr/local/bin
+- cp unipiss /usr/local/bin
+-
+- @echo "asp2php installed in /usr/local/bin"
+- @echo "unipiss installed in /usr/local/bin"
+- @echo "gtk2asp2php: Use from current directory"
+-
+-
++ $(INSTALL_PROGRAM) asp2php $(PREFIX)/bin
++ $(INSTALL_PROGRAM) unipiss $(PREFIX)/bin
+
++install-gtk:
++ $(INSTALL_PROGRAM) gtkasp2php $(PREFIX)/bin
diff --git a/www/asp2php/pkg-comment b/www/asp2php/pkg-comment
new file mode 100644
index 000000000000..2e7f0772e908
--- /dev/null
+++ b/www/asp2php/pkg-comment
@@ -0,0 +1 @@
+Converts ASP scripts to PHP
diff --git a/www/asp2php/pkg-descr b/www/asp2php/pkg-descr
new file mode 100644
index 000000000000..dfa918d0a388
--- /dev/null
+++ b/www/asp2php/pkg-descr
@@ -0,0 +1,7 @@
+asp2php is a program that converts ASP scripts to PHP.
+It require PHP4 code to work properly.
+
+WWW: http://asp2php.naken.cc/
+Author: Michael Kohn <naken@i1.net>
+
+- Will <andrews@technologist.com>
diff --git a/www/asp2php/pkg-plist b/www/asp2php/pkg-plist
new file mode 100644
index 000000000000..fd5f060c5499
--- /dev/null
+++ b/www/asp2php/pkg-plist
@@ -0,0 +1,3 @@
+bin/asp2php
+bin/unipiss
+%%WANT_GTK%%bin/gtkasp2php