aboutsummaryrefslogtreecommitdiff
path: root/cad/kicad-devel/Makefile
diff options
context:
space:
mode:
authorMichael Reifenberger <mr@FreeBSD.org>2017-02-24 14:16:00 +0000
committerMichael Reifenberger <mr@FreeBSD.org>2017-02-24 14:16:00 +0000
commita0819f4b8814669a7531fc62c8e077bc765b0577 (patch)
tree3f11891d04c22c0cc0d06be5a3857b3d9787489a /cad/kicad-devel/Makefile
parentb342171560d5f9221fed872444c8a704b3287062 (diff)
downloadports-a0819f4b8814669a7531fc62c8e077bc765b0577.tar.gz
ports-a0819f4b8814669a7531fc62c8e077bc765b0577.zip
Notes
Diffstat (limited to 'cad/kicad-devel/Makefile')
-rw-r--r--cad/kicad-devel/Makefile58
1 files changed, 5 insertions, 53 deletions
diff --git a/cad/kicad-devel/Makefile b/cad/kicad-devel/Makefile
index a826081f6ecb..e2c408adc15e 100644
--- a/cad/kicad-devel/Makefile
+++ b/cad/kicad-devel/Makefile
@@ -3,7 +3,6 @@
PORTNAME= kicad
DISTVERSION= r${GIT_SRC_DATE}
-PORTREVISION= 2
#PORTREVISION= 1
CATEGORIES= cad
MASTER_SITES= LOCAL/mr
@@ -29,7 +28,6 @@ CXXFLAGS+= -msse
USE_GL= glew glu gl
USE_WX= 3.0
WX_COMPS= wx
-WX_UNICODE= yes
USE_GNOME= atk cairo # Required by libwx_gtk2_aui-2.8.so
BROKEN_aarch64= Fails to compile: use of undeclared identifier builtin_ia32_emms
@@ -51,6 +49,7 @@ CMAKE_ARGS= -DLOCALBASE="${LOCALBASE}" \
-DKICAD_BUILD_VERSION=${DISTVERSION} \
-DCMAKE_INCLUDE_PATH="${LOCALBASE}/include" \
-DwxWidgets_CONFIG_EXECUTABLE="${WX_CONFIG}" \
+ -DwxWidgets_USE_DEBUG=ON \
-DKICAD_SKIP_BOOST=YES
.if exists(${LOCALBASE}/bin/konqueror)
@@ -59,21 +58,9 @@ RUN_DEPENDS+= konqueror:x11/kde4-baseapps
RUN_DEPENDS+= xpdf:graphics/xpdf
.endif
-.if defined(BOOTSTRAP)
-BOOST_RELEASE= 1.54.0
-BOOST_VERS= ${BOOST_RELEASE:S|.|_|g}
-
-GIT_SRC_HASH=`cd ${WRKDIR}/kicad; git log -n 1 --pretty=format:"%H"`
-GIT_SRC_DATE=`cd "${WRKDIR}/kicad"; git log -n 1 --date=iso-local -n 1 --pretty=format:"%cd" | \
- cut -c '1-19' | sed -e 's,-,,g' -e 's,:,,g' -e 's, ,,g'`
-
-.else
.include "Makefile.git_rev"
-.endif
showversions:
- @${ECHO} "BOOST_RELEASE: ${BOOST_RELEASE}"
- @${ECHO} "BOOST_VERS: ${BOOST_VERS}"
@${ECHO} "GIT_SRC_HASH: ${GIT_SRC_HASH}"
@${ECHO} "GIT_SRC_DATE: ${GIT_SRC_DATE}"
@${ECHO} "DISTDIR: ${DISTDIR}"
@@ -81,49 +68,14 @@ showversions:
@${ECHO} "DISTNAME: ${DISTNAME}"
@${ECHO} "DISTVERSION: ${DISTVERSION}"
-.if defined(BOOTSTRAP)
-
# Updating to new rev:
-# make do-fetch BOOTSTRAP=YES && make do-revisions BOOTSTRAP=YES && make do-distfile BOOTSTRAP=YES
+# sh files/newVersion.sh
# make makesum && make clean
-# make && make makeplist && make generate-plist && make check-plist
+# make install #breaks probably due to plist differences
+# make makeplist > pkg-plist #One has to edit/review the generated plist
+# make generate-plist && make check-plist
# < Check PLIST_FILE_LIST below >
-FETCH_DEPENDS+= svn:devel/subversion
-BUILD_DEPENDS+= git:devel/git
-FETCH_DEPENDS+= git:devel/git
-
-do-distfile:
- @if [ \! -d "${WRKDIR}/kicad-r${GIT_SRC_DATE}" ]; then \
- cd ${WRKDIR}; \
- mkdir "${WRKDIR}/kicad-r${GIT_SRC_DATE}"; \
- cd kicad; \
- find . -type d -name .git -prune -o -print | cpio -pdamuv "../kicad-r${GIT_SRC_DATE}"; \
- fi;
- @cd ${WRKDIR}; \
- tar xvf master.zip; \
- tar cvfy ${DISTDIR}/${DIST_SUBDIR}/kicad-r${GIT_SRC_DATE}.tar.bz2 \
- kicad-r${GIT_SRC_DATE} kicad-library-master
-
-do-revisions:
- echo "BOOST_RELEASE= ${BOOST_RELEASE}" > ${MASTERDIR}/Makefile.git_rev
- echo "BOOST_VERS= ${BOOST_VERS}" >> ${MASTERDIR}/Makefile.git_rev
- echo "GIT_SRC_HASH= ${GIT_SRC_HASH}" >> ${MASTERDIR}/Makefile.git_rev
- echo "GIT_SRC_DATE= ${GIT_SRC_DATE}" >> ${MASTERDIR}/Makefile.git_rev
-
-do-fetch:
- ${MKDIR} ${WRKDIR}
- @${ECHO} ${WRKSRC}
- @if [ \! -d "${WRKDIR}/kicad" ]; then \
- cd ${WRKDIR}; \
- echo git clone https://git.launchpad.net/kicad; \
- fi;
- @if [ \! -f "${WRKDIR}/master.zip" ]; then \
- ${FETCH_CMD} --no-verify-peer -o ${WRKDIR}/master.zip https://github.com/KiCad/kicad-library/archive/master.zip; \
- fi;
-
-.endif
-
tmp:
echo "${DATADIR} ${DATADIR:H}"