Index: head/www/surf/files/patch-config.mk =================================================================== --- head/www/surf/files/patch-config.mk (revision 315135) +++ head/www/surf/files/patch-config.mk (nonexistent) @@ -1,39 +0,0 @@ ---- config.mk.orig 2010-05-30 16:05:25.000000000 -0400 -+++ config.mk 2010-07-12 20:08:08.000000000 -0400 -@@ -4,25 +4,26 @@ - # Customize below to fit your system - - # paths --PREFIX = /usr/local --MANPREFIX = ${PREFIX}/share/man -+PREFIX?= /usr/local -+MANPREFIX = ${PREFIX}/man - --GTKINC=$(shell pkg-config --cflags gtk+-2.0 webkit-1.0) --GTKLIB=$(shell pkg-config --libs gtk+-2.0 webkit-1.0) -+GTKINC!= pkg-config --cflags gtk+-2.0 webkit-1.0 -+GTKLIB!= pkg-config --libs gtk+-2.0 webkit-1.0 - - - # includes and libs --INCS = -I. -I/usr/include ${GTKINC} --LIBS = -L/usr/lib -lc ${GTKLIB} -lgthread-2.0 -+INCS = ${GTKINC} -+LIBS = -pthread ${GTKLIB} - - # flags --CPPFLAGS = -DVERSION=\"${VERSION}\" --CFLAGS = -std=c99 -pedantic -Wall -Os ${INCS} ${CPPFLAGS} --LDFLAGS = -g ${LIBS} -+CPPFLAGS+= -DVERSION=\"${VERSION}\" -+CFLAGS+= -std=c99 ${INCS} ${CPPFLAGS} -+LDFLAGS+= ${LIBS} -+ - - # Solaris - #CFLAGS = -fast ${INCS} -DVERSION=\"${VERSION}\" - #LDFLAGS = ${LIBS} - - # compiler and linker --CC = cc -+CC?= cc Property changes on: head/www/surf/files/patch-config.mk ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/www/surf/Makefile =================================================================== --- head/www/surf/Makefile (revision 315135) +++ head/www/surf/Makefile (revision 315136) @@ -1,48 +1,63 @@ # Created by: Christopher Knaust # $FreeBSD$ PORTNAME= surf -PORTVERSION= 0.4.1 -PORTREVISION= 2 +PORTVERSION= 0.6 CATEGORIES= www MASTER_SITES= http://dl.suckless.org/${PORTNAME}/ MAINTAINER= ports@FreeBSD.org COMMENT= Simple Web browser based on WebKit/Gtk+ +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +OPTIONS_DEFINE= DOCS + LIB_DEPENDS= webkitgtk-1.0:${PORTSDIR}/www/webkit-gtk2 RUN_DEPENDS= dmenu:${PORTSDIR}/x11/dmenu +USE_CSTD= c99 USE_GNOME= gtk20 USE_PKGCONFIG= yes MAN1= surf.1 -PLIST_FILES= bin/surf -PORTDOCS= LICENSE README +PORTDOCS= README +PLIST_FILES= bin/surf share/pixmaps/surf.png +DESKTOP_ENTRIES="Surf" "" "${PREFIX}/share/pixmaps/surf.png" "surf" "" true + CONFLICTS= surf-1* # math/surf # Name conflicts with the math/surf port NO_LATEST_LINK= yes .include pre-everything:: @${ECHO_MSG} "You can build surf with your own config.h using the SURF_CONF knob:" @${ECHO_MSG} "make SURF_CONF=/path/to/surf/config.h install clean" post-extract: .if defined(SURF_CONF) @${ECHO_MSG} "creating config.h from ${SURF_CONF}" @${CP} ${SURF_CONF} ${WRKSRC}/config.h .endif +post-patch: + @${REINPLACE_CMD} -e \ + 's|^\(PREFIX\)|#\1| ; \ + s|/share/man|/man| ; \ + s|^\(CFLAGS\) =.*|\1 += -I. $${GTKINC} $${CPPFLAGS}| ; \ + s|^\(LDFLAGS\) =.*|\1 += $${GTKLIB}| ; \ + s|^\(CC\)|#\1|' ${WRKSRC}/config.mk + post-install: + @${STRIP_CMD} ${PREFIX}/bin/surf + (cd ${WRKSRC} && ${INSTALL_DATA} surf.png ${PREFIX}/share/pixmaps) .if ${PORT_OPTIONS:MDOCS} - @${ECHO_MSG} "installing additional documentation to ${DOCSDIR}" @${MKDIR} ${DOCSDIR} - @${INSTALL_MAN} ${WRKSRC}/LICENSE ${DOCSDIR} - @${INSTALL_MAN} ${WRKSRC}/README ${DOCSDIR} + (cd ${WRKSRC} && ${INSTALL_DATA} README ${DOCSDIR}) .endif .include Property changes on: head/www/surf/Makefile ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/www/surf/distinfo =================================================================== --- head/www/surf/distinfo (revision 315135) +++ head/www/surf/distinfo (revision 315136) @@ -1,2 +1,2 @@ -SHA256 (surf-0.4.1.tar.gz) = 93709ba3e84baf2118676e96a5b2e5d4176f28c35c782fffd80a65c0a5bea546 -SIZE (surf-0.4.1.tar.gz) = 10102 +SHA256 (surf-0.6.tar.gz) = fdc1ccfaee5c4f008eeb8fe5f9200d3ad71296e8d7af52bdd6a771f111866805 +SIZE (surf-0.6.tar.gz) = 14781 Property changes on: head/www/surf/distinfo ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property