blob: d388cca7282a9c0e587b3c9d8a5b2a433c68a7c0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
# New ports collection makefile for: asp2php
# Date created: Thu 29 Jun 2000
# Whom: will
#
# $FreeBSD$
#
PORTNAME= asp2php
PORTVERSION= 0.76.13
CATEGORIES= www
MASTER_SITES= http://65.108.58.129/asp2php/ \
http://dl.droso.net/ports/
MAINTAINER= erwin@lansing.dk
COMMENT= Converts ASP scripts to PHP
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION:S/a//}/src
USE_GNOMENG= yes
WANT_GNOME= yes
MAKE_ENV= FLAGS="${CFLAGS}"
USE_REINPLACE= yes
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgtk12}!=""
USE_GNOME+= gtk12
PKGNAMESUFFIX= -gtk
ALL_TARGET= default gui
PLIST_SUB+= WANT_GTK=""
.else
ALL_TARGET= default
PLIST_SUB+= WANT_GTK="@comment "
.endif
post-patch:
@${FIND} ${WRKSRC} -name "Makefile" | ${XARGS} ${REINPLACE_CMD} -e \
's|^CC=|#CC=|g ; \
s| make| \$$\{MAKE\}|g ; \
s|`gtk-config|`\$$\{GTK_CONFIG\}|g'
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/asp2php ${PREFIX}/bin
.if defined(HAVE_GTK)
${INSTALL_PROGRAM} ${WRKSRC}/gtkasp2php ${PREFIX}/bin
.endif
.include <bsd.port.post.mk>
|