Changeset View
Changeset View
Standalone View
Standalone View
www/qt5-webkit-annulen/Makefile
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
# Created by: tcberner | |||||
# $FreeBSD$ | |||||
PORTNAME= webkit-annulen | |||||
PORTVERSION= 5.602.2 | |||||
DISTVERSIONSUFFIX= -${GH_TAGNAME} | |||||
CATEGORIES= www | |||||
MASTER_SITES= LOCAL/tcberner/${PORTNAME}-${PORTVERSION} | |||||
mat: While you are free to use whatever scheme you want for your public_distfile directory, I find… | |||||
PKGNAMEPREFIX= qt5- | |||||
MAINTAINER= kde@FreeBSD.org | |||||
COMMENT= QtWebKit with a more modern WebKit code base | |||||
Not Done Inline ActionsI would also rename the directory of the distfile to match PORTNAME-PORTVERSION, so that you don't need that. mat: I would also rename the directory of the distfile to match PORTNAME-PORTVERSION, so that you… | |||||
LICENSE= GPLv2 | |||||
LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ | |||||
libgstapp-1.0.so:multimedia/gstreamer1-plugins \ | |||||
libgstbase-1.0.so:multimedia/gstreamer1 \ | |||||
libhyphen.so:textproc/hyphen \ | |||||
libicui18n.so:devel/icu \ | |||||
libpng16.so:graphics/png \ | |||||
libwebp.so:graphics/webp | |||||
USES= bison cmake:outsource desktop-file-utils gperf jpeg \ | |||||
pathfix perl5 pkgconfig python:build sqlite:3 tar:xz | |||||
USE_GNOME= glib20 libxml2 libxslt | |||||
USE_GSTREAMER1= core | |||||
USE_QT5= buildtools_build core gui location network \ | |||||
printsupport qmake_build sql opengl sensors testlib \ | |||||
widgets | |||||
USE_RUBY= yes | |||||
USE_XORG= x11 xcomposite xrender | |||||
RUBY_NO_RUN_DEPENDS= yes | |||||
CMAKE_ARGS= -DPORT:STRING="Qt" \ | |||||
-DKDE_INSTALL_INCLUDEDIR:STRING="${QT_INCDIR}" | |||||
# Add -DNDEBUG to CXXFLAGS which in turn gets sucked into | |||||
# CMAKE_CXX_FLAGS_RELEASE where we actually want to have it. | |||||
# [for the ASSERT in Source/WebCore/platform/graphics/texmap/GraphicsLayerTextureMapper.cpp ] | |||||
CXXFLAGS+= -DNDEBUG | |||||
# Forcefully disable the gold linker as it leads to | |||||
# /usr/lib/libgcc_s.so: error: undefined reference to 'mprotect' | |||||
# [...] | |||||
CMAKE_ARGS+= -DUSE_LD_GOLD:BOOL=FALSE | |||||
CONFLICTS_INSTALL= qt5-webkit-5.* | |||||
Done Inline ActionsWhat I think I would do to keep most of the informations around would be: PORTNAME= webkit-annulen PORTVERSION= 5.602.2 DISTVERSIONSUFFIX= -db25c2b And drop PKGNAMESUFFIX. Then rename the distfile directory, and the distfile to match that. You could even automate it with a target in the Makefile, say, generate-tarball or something, see what is done in net/concourse-fly for example. mat: What I think I would do to keep most of the informations around would be:
```
PORTNAME=… | |||||
PLIST_SUB= FULLVER="${PORTVERSION}" | |||||
# The git tag to fetch | |||||
GH_TAGNAME= db25c2b | |||||
.include <bsd.port.mk> | |||||
# The git repository contains subdirectories with tests and websites that take | |||||
# up a lot of space. Therefore manually create a tarball using the target | |||||
# create-src-archive below. | |||||
.PHONY: create-src-archive | |||||
ARCHIVE_DIR= ${DISTDIR}/${DISTNAME} | |||||
ORIGINAL_DIR= ${DISTDIR}/webkit-${GH_TAGNAME} | |||||
DONOTEXTRACT= JSTests LayoutTests ManualTests PerformanceTests Websites | |||||
create-src-archive: | |||||
fetch https://codeload.github.com/annulen/webkit/tar.gz/${GH_TAGNAME}?dummy=/ -o ${ORIGINAL_DIR}.tar.gz | |||||
tar -xf ${ORIGINAL_DIR}.tar.gz ${DONOTEXTRACT:S,^,--exclude ,} --directory ${DISTDIR} | |||||
${MV} ${ORIGINAL_DIR} ${ARCHIVE_DIR} | |||||
${TAR} -cf - -C ${ARCHIVE_DIR:H} ${ARCHIVE_DIR:T} | ${XZ_CMD} > ${ARCHIVE_DIR}.tar.xz | |||||
${MAKE} makesum |
While you are free to use whatever scheme you want for your public_distfile directory, I find that creating a directory per port keeps everything tidy :-)