I have a last question before I will do send-pr for my new port math/ggobi.

The original program wants to install 'ggobi.pc' under

  /usr/local/lib/pkgconfig/

instead of

  /usr/local/libdata/pkgconfig/

I wrote a small patch in Makefile to change the location:

post-patch:
@${REINPLACE_CMD} -e 's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
                ${WRKSRC}/Makefile.am \
                ${WRKSRC}/Makefile.in

Do you think this replacement is save enough if someone wants to install in another place?

Thanks for answering,
Rainer
# Ports collection makefile for:   ggobi
# Date created:        31 January 2010
# Whom:                rhurlin
#
# $FreeBSD$
#

PORTNAME=       ggobi
PORTVERSION=    2.1.8
CATEGORIES=     math graphics
MASTER_SITES=   http://www.ggobi.org/downloads/
DISTNAME=       ${PORTNAME}-${PORTVERSION}

MAINTAINER=     rhur...@gwdg.de
COMMENT=        Data visualization system

USE_BZIP2=      yes
USE_GNOME=      gtk20 libxml2
USE_LDCONFIG=   yes
GNU_CONFIGURE=  yes

CONFIGURE_ARGS+=        --with-all-plugins

post-patch:
        @${REINPLACE_CMD} -e 's|ND_coord_i|ND_coord|' \
                ${WRKSRC}/plugins/GraphLayout/graphviz.c
        @${REINPLACE_CMD} -e 
's|$$(libdir)/pkgconfig|${PREFIX}/libdata/pkgconfig|' \
                ${WRKSRC}/Makefile.am \
                ${WRKSRC}/Makefile.in

ALL_TARGET=     all ggobirc

post-install:
        ${MKDIR} ${PREFIX}/etc/xdg/ggobi
        ${INSTALL_DATA} ${WRKSRC}/ggobirc ${PREFIX}/etc/xdg/ggobi/ggobirc.sample
        @if [ ! -f ${PREFIX}/etc/xdg/ggobi/ggobirc ]; then \
        ${CP} -p ${PREFIX}/etc/xdg/ggobi/ggobirc.sample 
${PREFIX}/etc/xdg/ggobi/ggobirc ; \
        fi

.include <bsd.port.mk>
MD5 (ggobi-2.1.8.tar.bz2) = 0b07adffcf4379e819b1a26e4cd60d7b
SHA256 (ggobi-2.1.8.tar.bz2) = 
2f814376d08a783628d2150d64cddda2e86b71f12847f1d51ba977197102fa8f
SIZE (ggobi-2.1.8.tar.bz2) = 2531628
GGobi is an open source visualization program for exploring high-dimensional 
data. It provides highly dynamic and interactive graphics such as tours, as 
well as familiar graphics such as the scatterplot, barchart and parallel 
coordinates plots. Plots are interactive and linked with brushing and 
identification.

WWW: http://www.ggobi.org/
bin/ggobi
include/ggobi/GGStructSizes.c
include/ggobi/GGobiAPI.h
include/ggobi/GGobiApp.h
include/ggobi/GGobiEvents.h
include/ggobi/barchartDisplay.h
include/ggobi/brushing.h
include/ggobi/colorscheme.h
include/ggobi/config.h
include/ggobi/cpanel.h
include/ggobi/defines.h
include/ggobi/display.h
include/ggobi/display_tree.h
include/ggobi/externs.h
include/ggobi/fileio.h
include/ggobi/ggobi-data.h
include/ggobi/ggobi-intl.h
include/ggobi/ggobi-renderer-cairo.h
include/ggobi/ggobi-renderer-factory.h
include/ggobi/ggobi-renderer.h
include/ggobi/ggobi.h
include/ggobi/ggobiClass.h
include/ggobi/marshal.h
include/ggobi/noop-toggle.h
include/ggobi/parcoordsClass.h
include/ggobi/plugin.h
include/ggobi/print.h
include/ggobi/read_csv.h
include/ggobi/read_init.h
include/ggobi/read_xml.h
include/ggobi/scatmatClass.h
include/ggobi/scatterplotClass.h
include/ggobi/splash.h
include/ggobi/splot.h
include/ggobi/testEvents.h
include/ggobi/tour.h
include/ggobi/tour1d_pp.h
include/ggobi/tour2d_pp.h
include/ggobi/tour_pp.h
include/ggobi/tsPlot.h
include/ggobi/tsdisplay.h
include/ggobi/types.h
include/ggobi/vars.h
include/ggobi/varseldata.h
include/ggobi/vartable.h
include/ggobi/write_xml.h
include/ggobi/writedata.h
lib/libggobi.la
lib/libggobi.so
lib/libggobi.so.0
libdata/pkgconfig/ggobi.pc
share/applications/ggobi.desktop
share/ggobi/data/Shipman.csv
share/ggobi/data/Shipman.xml
share/ggobi/data/adhoc.xml
share/ggobi/data/algal-bloom.xml
share/ggobi/data/buckyball.xml
share/ggobi/data/cube6.xml
share/ggobi/data/eies.xml
share/ggobi/data/flea.csv
share/ggobi/data/flea.xml
share/ggobi/data/laser.csv
share/ggobi/data/laser.xml
share/ggobi/data/morsecodes.xml
share/ggobi/data/olive.csv
share/ggobi/data/olive.xml
share/ggobi/data/perm4.xml
share/ggobi/data/perm5.xml
share/ggobi/data/pigs.xml
share/ggobi/data/places.csv
share/ggobi/data/places.xml
share/ggobi/data/prim7.xml
share/ggobi/data/ratcns.csv
share/ggobi/data/ratcns.xml
share/ggobi/data/river.xml
share/ggobi/data/roos.csv
share/ggobi/data/roos.xml
share/ggobi/data/sarsHK.xml
share/ggobi/data/sat.csv
share/ggobi/data/sat.xml
share/ggobi/data/sleep.csv
share/ggobi/data/sleep.xml
share/ggobi/data/snetwork.xml
share/ggobi/data/stdColorMap.xml
share/ggobi/data/tao-nomiss.xml
share/ggobi/data/tao.csv
share/ggobi/data/tao.xml
share/ggobi/data/tips.csv
share/ggobi/data/tips.xml
share/ggobi/data/tmin.csv
share/ggobi/data/tmin.xml
share/ggobi/data/tmin1.csv
share/ggobi/data/tmin1.xml
share/ggobi/data/tmin2.xml
share/ggobi/data/tmin3.xml
share/ggobi/data/tmin4.xml
share/ggobi/plugins/DataViewer/plugin.la
share/ggobi/plugins/DataViewer/plugin.so
share/ggobi/plugins/DataViewer/plugin.so.0
share/ggobi/plugins/DescribeDisplay/plugin.la
share/ggobi/plugins/DescribeDisplay/plugin.so
share/ggobi/plugins/DescribeDisplay/plugin.so.0
share/ggobi/plugins/GraphAction/plugin.la
share/ggobi/plugins/GraphAction/plugin.so
share/ggobi/plugins/GraphAction/plugin.so.0
share/ggobi/plugins/GraphLayout/plugin.la
share/ggobi/plugins/GraphLayout/plugin.so
share/ggobi/plugins/GraphLayout/plugin.so.0
share/ggobi/plugins/VarCloud/plugin.la
share/ggobi/plugins/VarCloud/plugin.so
share/ggobi/plugins/VarCloud/plugin.so.0
share/ggobi/plugins/ggvis/plugin.la
share/ggobi/plugins/ggvis/plugin.so
share/ggobi/plugins/ggvis/plugin.so.0
share/ggobi/share/colorschemes.xml
share/pixmaps/ggobi.png
@dirrm share/ggobi/share
@dirrm share/ggobi/plugins/ggvis
@dirrm share/ggobi/plugins/VarCloud
@dirrm share/ggobi/plugins/GraphLayout
@dirrm share/ggobi/plugins/GraphAction
@dirrm share/ggobi/plugins/DescribeDisplay
@dirrm share/ggobi/plugins/DataViewer
@dirrm share/ggobi/plugins
@dirrm share/ggobi/data
@dirrm share/ggobi
@dirrm share/applications
@dirrmtry libdata/pkgconfig
@dirrm include/ggobi
@unexec if cmp -s %D/etc/xdg/ggobi/ggobirc.sample %D/etc/xdg/ggobi/ggobirc; 
then rm -f %D/etc/xdg/ggobi/ggobirc; fi
etc/xdg/ggobi/ggobirc.sample
@exec if [ ! -f %B/ggobirc ]; then cp -p %D/%F %B/ggobirc; fi
@dirrmtry share/applications
@dirrmtry etc/xdg/ggobi
@dirrmtry etc/xdg
_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "freebsd-ports-unsubscr...@freebsd.org"

Reply via email to