Index: head/databases/grass/Makefile =================================================================== --- head/databases/grass/Makefile (revision 425325) +++ head/databases/grass/Makefile (revision 425326) @@ -1,162 +1,163 @@ # Created by: reg # $FreeBSD$ PORTNAME= grass PORTVERSION= 6.4.6 +PORTREVISION= 1 PORTEPOCH= 2 CATEGORIES= databases geography MASTER_SITES= http://grass.osgeo.org/%SUBDIR%/ \ http://grass.cict.fr/%SUBDIR%/ \ http://grass.fbk.eu/%SUBDIR%/ \ http://grass.gis-lab.info/%SUBDIR%/ \ http://grass.meteo.uni.wroc.pl/%SUBDIR%/ \ http://grass.polytechnic.edu.na/%SUBDIR%/ \ http://grass.unibuc.ro/%SUBDIR%/ \ http://mirrors.ibiblio.org/grass/%SUBDIR%/ \ http://pinus.gntech.ac.kr/grass/%SUBDIR%/ \ http://wgbis.ces.iisc.ernet.in/grass/%SUBDIR%/ \ http://wgrass.media.osaka-cu.ac.jp/grassh/%SUBDIR%/ MASTER_SITE_SUBDIR= grass64/source MAINTAINER= ports@FreeBSD.org COMMENT= Open source Geographical Information System (GIS) LICENSE= GPLv2+ LICENSE_FILE= ${WRKSRC}/GPL.TXT BUILD_DEPENDS= ${LOCALBASE}/bin/swig:devel/swig13 LIB_DEPENDS= libgdal.so:graphics/gdal \ libpng.so:graphics/png \ libproj.so:graphics/proj \ libtiff.so:graphics/tiff \ libfftw3.so:math/fftw3 \ libfreetype.so:print/freetype2 RUN_DEPENDS= bash:shells/bash USES= fortran gettext gmake iconv jpeg perl5 pkgconfig python:2 \ readline shebangfix tk SHEBANG_FILES= scripts/i.spectral/i.spectral \ scripts/r.tileset/r.tileset \ visualization/nviz/scripts/nviz2.2_script \ visualization/nviz/scripts/script_file_tools \ visualization/nviz/scripts/script_get_line \ visualization/nviz/scripts/script_play \ visualization/nviz/scripts/script_tools SHEBANG_LANG= nviz nviz_OLD_CMD= nviz nviz_CMD= ${PREFIX}/${GRASS_INST_DIR}/bin/nviz PATCH_TCL_SCRIPTS=lib/init/init.sh PATCH_TK_SCRIPTS=lib/init/init.sh USE_XORG= sm ice x11 xext xi xmu xt USE_GL= glu USE_GNOME= cairo USE_WX= 2.8 WX_COMPS= wx:build python:run USE_GCC= yes GNU_CONFIGURE= yes CONFIGURE_ENV= PERL="${PERL}" CONFIGURE_ARGS= --with-includes=${LOCALBASE}/include \ --with-libs=${LOCALBASE}/lib \ --with-tcltk-includes="${TCL_INCLUDEDIR} ${TK_INCLUDEDIR}" \ --with-opengl-includes=${LOCALBASE}/include/ \ --with-opengl-libs=${LOCALBASE}/lib/ \ --with-freetype \ --with-freetype-includes=${LOCALBASE}/include/freetype2 \ --with-blas \ --with-lapack \ --with-cairo \ --with-nls \ --with-cxx \ --with-readline \ --with-curses \ --enable-largefile \ --with-python=${PYTHON_CMD}-config \ --with-wxwidgets=${WX_CONFIG} ALL_TARGET= default USE_LDCONFIG= ${PREFIX}/${GRASS_INST_DIR}/lib MAKE_JOBS_UNSAFE=yes PLIST_SUB= GRASS_INST_DIR="${GRASS_INST_DIR}" \ VERSION="${PORTVERSION}" \ VER="${PORTVERSION:R:C/\.//}" BROKEN_sparc64= Does not configure on sparc64 OPTIONS_DEFINE= ATLAS FFMPEG MOTIF OPTIONS_MULTI= DB OPTIONS_MULTI_DB= MYSQL ODBC PGSQL SQLITE OPTIONS_DEFAULT= PGSQL OPTIONS_SUB= yes ATLAS_DESC= Use ATLAS for BLAS and LAPACK ATLAS_USES= blaslapack:atlas ATLAS_USES_OFF= blaslapack DB_DESC= Database support FFMPEG_LIB_DEPENDS= libavcodec.so:multimedia/ffmpeg FFMPEG_CONFIGURE_ON= --with-ffmpeg \ --with-ffmpeg-includes="${LOCALBASE}/include/libavcodec \ ${LOCALBASE}/include/libavformat \ ${LOCALBASE}/include/libavutil \ ${LOCALBASE}/include/libswscale" \ --with-ffmpeglibs=${LOCALBASE}/lib MOTIF_USES= motif MOTIF_USE= GL=glw MOTIF_CONFIGURE_ON= --with-motif --with-glw MYSQL_USE= MYSQL=yes MYSQL_CONFIGURE_ON= --with-mysql \ --with-mysql-includes=${LOCALBASE}/include/mysql \ --with-mysql-libs=${LOCALBASE}/lib/mysql ODBC_LIB_DEPENDS= libodbc.so:databases/unixODBC ODBC_CONFIGURE_ON= --with-odbc PGSQL_USES= pgsql PGSQL_CONFIGURE_ON= --with-postgres SQLITE_USES= sqlite SQLITE_CONFIGURE_ON= --with-sqlite .include .if !defined (GRASS_INST_DIR) GRASS_INST_DIR= ${PORTNAME}-${PORTVERSION} .endif post-patch: @${REINPLACE_CMD} -e \ 's|-lblas|${BLASLIB}|g ; \ s|-llapack|${LAPACKLIB}|g ; \ s|g2c|f2c|g' ${WRKSRC}/configure @${REINPLACE_CMD} -e \ 's|make -C|$$(MAKE) -C| ; \ /^BINDIR/s|=.*|= $${DESTDIR}$${UNIX_BIN}| ; \ /test /s| $${INST_DIR}| $${DESTDIR}$${INST_DIR}|g ; \ /tar /s| $${INST_DIR}| $${DESTDIR}$${INST_DIR}|g ; \ /chmod /s| $${INST_DIR}| $${DESTDIR}$${INST_DIR}|g ; \ /tar /s| $${INST_DIR}| $${DESTDIR}$${INST_DIR}|g ; \ s|> $${INST_DIR}|> $${DESTDIR}$${INST_DIR}|' ${WRKSRC}/Makefile @${REINPLACE_CMD} -e \ 's|^CC=.*|CC?=cc| ; \ s|^CFLAGS=.*|CFLAGS+=-fno-common|' ${WRKSRC}/gem/Makefile @${REINPLACE_CMD} -e \ 's|= python|= ${PYTHON_CMD:T}|' ${WRKSRC}/include/Make/Platform.make.in post-install: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/gem64 @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/bin/*.* .for i in HTMLMAP PNG PS XDRIVER cairo @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/driver/${i} .endfor @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/driver/db/* .for i in bmif_to_cell clean_temp current_time_s_ms echo frame.* grocat \ i.ask i.find i.photo.* lock mod* mon.* poly_to_bmif r.watershed.* \ run set_data @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/etc/${i} .endfor @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/etc/form/form @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/etc/lister/* @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/etc/nviz2.2/nviz @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/lib/libgrass_*.so @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/tools/g.echo post-install-MOTIF-on: @${STRIP_CMD} ${STAGEDIR}${PREFIX}/${GRASS_INST_DIR}/bin/xganim .include Index: head/databases/grass/files/patch-lib_ogsf_gsd__img__mpeg.c =================================================================== --- head/databases/grass/files/patch-lib_ogsf_gsd__img__mpeg.c (nonexistent) +++ head/databases/grass/files/patch-lib_ogsf_gsd__img__mpeg.c (revision 425326) @@ -0,0 +1,102 @@ +--- lib/ogsf/gsd_img_mpeg.c.orig 2013-07-09 19:05:44 UTC ++++ lib/ogsf/gsd_img_mpeg.c +@@ -38,7 +38,7 @@ + #define STREAM_DURATION 5.0 + #define STREAM_FRAME_RATE 25 /* 25 images/s */ + #define STREAM_NB_FRAMES ((int)(STREAM_DURATION * STREAM_FRAME_RATE)) +-#define STREAM_PIX_FMT PIX_FMT_YUV420P /* default pix_fmt */ ++#define STREAM_PIX_FMT AV_PIX_FMT_YUV420P /* default pix_fmt */ + + AVFrame *picture, *tmp_picture; + uint8_t *video_outbuf; +@@ -95,11 +95,11 @@ static AVStream *add_video_stream(AVForm + c->time_base.num = 1; + c->gop_size = 12; /* emit one intra frame every twelve frames at most */ + c->pix_fmt = STREAM_PIX_FMT; +- if (c->codec_id == CODEC_ID_MPEG2VIDEO) { ++ if (c->codec_id == AV_CODEC_ID_MPEG2VIDEO) { + /* just for testing, we also add B frames */ + c->max_b_frames = 2; + } +- if (c->codec_id == CODEC_ID_MPEG1VIDEO) { ++ if (c->codec_id == AV_CODEC_ID_MPEG1VIDEO) { + /* Needed to avoid using macroblocks in which some coeffs overflow. + This does not happen with normal video, it just happens here as + the motion of the chroma plane does not match the luma plane. */ +@@ -138,7 +138,7 @@ static AVFrame *alloc_picture(int pix_fm + uint8_t *picture_buf; + int size; + +- picture = avcodec_alloc_frame(); ++ picture = av_frame_alloc(); + + if (!picture) + return NULL; +@@ -210,8 +210,8 @@ static void open_video(AVFormatContext * + picture is needed too. It is then converted to the required + output format */ + tmp_picture = NULL; +- if (c->pix_fmt != PIX_FMT_YUV420P) { +- tmp_picture = alloc_picture(PIX_FMT_YUV420P, c->width, c->height); ++ if (c->pix_fmt != AV_PIX_FMT_YUV420P) { ++ tmp_picture = alloc_picture(AV_PIX_FMT_YUV420P, c->width, c->height); + if (!tmp_picture) { + G_warning(_("Unable to allocate temporary picture")); + return; +@@ -227,7 +227,7 @@ static void open_video(AVFormatContext * + */ + static void write_video_frame(AVFormatContext * oc, AVStream * st) + { +- int out_size, ret; ++ int ret; + AVCodecContext *c; + + c = st->codec; +@@ -250,15 +250,17 @@ static void write_video_frame(AVFormatCo + ret = av_write_frame(oc, &pkt); + } + else { +- /* encode the image */ +- out_size = +- avcodec_encode_video(c, video_outbuf, video_outbuf_size, picture); +- /* if zero size, it means the image was buffered */ +- if (out_size > 0) { +- AVPacket pkt; ++ AVPacket pkt; ++ int got_packet = 0; + +- av_init_packet(&pkt); ++ av_init_packet(&pkt); ++ pkt.data = video_outbuf; ++ pkt.size = video_outbuf_size; + ++ /* encode the image */ ++ ret = avcodec_encode_video2(c, &pkt, picture, &got_packet); ++ /* if zero size, it means the image was buffered */ ++ if (ret == 0 && got_packet && pkt.size > 0) { + pkt.pts = + av_rescale_q(c->coded_frame->pts, c->time_base, + st->time_base); +@@ -269,8 +271,6 @@ static void write_video_frame(AVFormatCo + pkt.flags |= AV_PKT_FLAG_KEY; + #endif + pkt.stream_index = st->index; +- pkt.data = video_outbuf; +- pkt.size = out_size; + + /* write the compressed frame in the media file */ + ret = av_write_frame(oc, &pkt); +@@ -362,11 +362,11 @@ int gsd_init_mpeg(const char *filename) + /* if you want to hardcode the codec (eg #ifdef USE_XVID) + this may be the place to do it (?????) */ + #ifdef USE_XVID +- fmt->video_codec = CODEC_ID_XVID; ++ fmt->video_codec = AV_CODEC_ID_XVID; + #endif + + video_st = NULL; +- if (fmt->video_codec != CODEC_ID_NONE) { ++ if (fmt->video_codec != AV_CODEC_ID_NONE) { + video_st = + add_video_stream(oc, fmt->video_codec, (r - l + 1), (t - b + 1)); + } Property changes on: head/databases/grass/files/patch-lib_ogsf_gsd__img__mpeg.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property 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