Lines 5-27
Link Here
|
5 |
# $FreeBSD: ports/www/tidy-devel/Makefile,v 1.27 2003/02/19 00:43:41 leeym Exp $ |
5 |
# $FreeBSD: ports/www/tidy-devel/Makefile,v 1.27 2003/02/19 00:43:41 leeym Exp $ |
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= tidy |
8 |
PORTNAME?= tidy |
9 |
PORTVERSION= 030217 |
9 |
PORTVERSION= 030220 |
10 |
CATEGORIES= www |
10 |
CATEGORIES= www |
11 |
MASTER_SITES= http://tidy.sourceforge.net/src/%SUBDIR%/ \ |
11 |
MASTER_SITES= http://tidy.sourceforge.net/src/%SUBDIR%/ \ |
12 |
http://tidy.sourceforge.net/docs/ |
12 |
http://tidy.sourceforge.net/docs/ |
13 |
MASTER_SITE_SUBDIR= . old |
13 |
MASTER_SITE_SUBDIR= . old |
14 |
PKGNAMESUFFIX= -devel |
14 |
PKGNAMESUFFIX?= -devel |
15 |
DISTNAME= tidy_src |
15 |
DISTNAME= tidy_src |
16 |
EXTRACT_SUFX= .tgz |
16 |
EXTRACT_SUFX= .tgz |
17 |
DISTFILES= ${DISTNAME}_${PORTVERSION}${EXTRACT_SUFX} |
17 |
DISTFILES= ${DISTNAME}_${PORTVERSION}${EXTRACT_SUFX} |
18 |
|
18 |
|
19 |
MAINTAINER= thierry@pompo.net |
19 |
MAINTAINER?= thierry@pompo.net |
20 |
COMMENT= Utility to clean up and pretty print HTML/XHTML/XML |
20 |
COMMENT?= Utility to clean up and pretty print HTML/XHTML/XML |
21 |
|
21 |
|
22 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
22 |
WRKSRC= ${WRKDIR}/${PORTNAME} |
23 |
|
23 |
|
|
|
24 |
.if !defined(WITH_SHLIB) |
24 |
USE_GMAKE= yes |
25 |
USE_GMAKE= yes |
|
|
26 |
PLIST_SUB= SHLIB="@comment " |
27 |
.else |
28 |
USE_AUTOMAKE_VER= 15 |
29 |
AUTOMAKE_ARGS+= -a -c --foreign |
30 |
USE_AUTOCONF= yes |
31 |
CONFIGURE_TARGET= --target=${MACHINE_ARCH}-unknown-freebsd${OSREL} |
32 |
USE_LIBTOOL= yes |
33 |
INSTALLS_SHLIB= yes |
34 |
PLIST_SUB= SHLIB="" |
35 |
.endif |
36 |
|
37 |
DESCR= ${.CURDIR}/pkg-descr |
38 |
|
39 |
BIN2STRIP= tidy tab2space |
25 |
|
40 |
|
26 |
#MAN1= tidy.1 |
41 |
#MAN1= tidy.1 |
27 |
|
42 |
|
Lines 33-47
Link Here
|
33 |
APIEXT= css html js png |
48 |
APIEXT= css html js png |
34 |
.endif |
49 |
.endif |
35 |
|
50 |
|
36 |
BIN2STRIP= tidy tab2space |
51 |
post-patch: |
37 |
|
52 |
.if !defined(WITH_SHLIB) |
38 |
post-extract: |
53 |
@${CP} ${WRKSRC}/build/gmake/Makefile ${WRKSRC} |
39 |
@${CP} -p ${WRKSRC}/build/gmake/Makefile ${WRKSRC} |
54 |
.else |
|
|
55 |
@${CP} -R -f ${WRKSRC}/build/gnuauto/* ${WRKSRC} |
56 |
(cd ${WRKSRC} \ |
57 |
&& ${LOCALBASE}/bin/libtoolize --force --copy \ |
58 |
&& ${ACLOCAL}) |
59 |
.endif |
40 |
|
60 |
|
41 |
pre-install: |
61 |
pre-install: |
42 |
@if [ -f ${LOCALBASE}/bin/tidy ]; then \ |
62 |
@if [ -f ${LOCALBASE}/bin/tidy ]; then \ |
43 |
${ECHO_MSG} "" ; \ |
63 |
${ECHO_MSG} "" ; \ |
44 |
${ECHO_MSG} "Conflict: please deinstall the port bin/tidy." ; \ |
64 |
${ECHO_MSG} "Conflict: another tidy has been found; please deinstall it." ; \ |
|
|
65 |
${ECHO_MSG} "(`pkg_info -W ${LOCALBASE}/bin/tidy`)" ; \ |
45 |
${ECHO_MSG} "" ; \ |
66 |
${ECHO_MSG} "" ; \ |
46 |
${FALSE} ; \ |
67 |
${FALSE} ; \ |
47 |
fi |
68 |
fi |
Lines 50-55
Link Here
|
50 |
.for pgm in ${BIN2STRIP} |
71 |
.for pgm in ${BIN2STRIP} |
51 |
@${STRIP_CMD} ${PREFIX}/bin/${pgm} |
72 |
@${STRIP_CMD} ${PREFIX}/bin/${pgm} |
52 |
.endfor |
73 |
.endfor |
|
|
74 |
.if defined(WITH_SHLIB) |
75 |
@${STRIP_CMD} ${PREFIX}/lib/libtidy-0.99.so.0 |
76 |
.endif |
53 |
.if !defined(NOPORTDOCS) |
77 |
.if !defined(NOPORTDOCS) |
54 |
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}" |
78 |
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}" |
55 |
@${MKDIR} ${DOCSDIR} |
79 |
@${MKDIR} ${DOCSDIR} |