1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-18 03:46:03 +00:00
freebsd-ports/comms/xastir/Makefile
Alexey Dokuchaev 514b949913 - Unbreak the build on sparc64: gcc was generating assembler code that
invoked FdTOx (convert floating point to 64-bit integer) instruction
  with odd register number as the second argument, while apparently[*]
  an even number is required:

	fdtox	%f10, %f15

  It caused ``Illegal operands'' error when compiling `draw_symbols.c':

	{standard input}: Assembler messages:
	{standard input}:2686: Error: Illegal operands
	{standard input}:2695: Error: Illegal operands
	{standard input}:2835: Error: Illegal operands
	{standard input}:2844: Error: Illegal operands
	{standard input}:2854: Error: Illegal operands
	{standard input}:2864: Error: Illegal operands

  Fix the build by forcing -O0 when compiling this file on sparc64.

- Remove OPTCFLAGS option which enabled "optimized" CFLAGS ``-O2 -pipe'':
  these are our default CFLAGS for a long time

[*] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56890
2017-12-30 10:40:38 +00:00

74 lines
2.1 KiB
Makefile

# Created by: Carl Makin <carl@stagecraft.cx>
# $FreeBSD$
PORTNAME= xastir
PORTVERSION= 2.0.6
PORTREVISION= 5
CATEGORIES= comms hamradio
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}-stable/${PORTNAME}-${PORTVERSION}
MAINTAINER= carl@stagecraft.cx
COMMENT= X Amateur Station Tracking and Information Reporting
BUILD_DEPENDS= xfontsel:x11-fonts/xfontsel
RUN_DEPENDS= wget:ftp/wget
LIB_DEPENDS= libtiff.so:graphics/tiff \
libpng.so:graphics/png
GNU_CONFIGURE= yes
USES= gettext gmake jpeg motif python:run shebangfix
SHEBANG_FILES= scripts/*.pl scripts/get-maptools.sh \
scripts/gpx2shape scripts/values.pl.in \
scripts/Xastir_tigerpoly.py
SUB_FILES= pkg-message
OPTIONS_DEFINE= SHAPELIB DBFAWK MAGICK CURL GEOTIFF GDAL GPSMAN FESTIVAL \
RTREE ERRORPOP BDB
SHAPELIB_DESC= Include Shapelib support
DBFAWK_DESC= Include DBFAWK Support
MAGICK_DESC= Include GraphicsMagick Support
CURL_DESC= Include CURL Internet Image support
GEOTIFF_DESC= Include GeoTIFF Support
GDAL_DESC= Include GDAL Support
GPSMAN_DESC= Include GPSMAN Support
FESTIVAL_DESC= Include Festival Voice Synthesis Support
RTREE_DESC= Enable spatial indexing of shapefiles
ERRORPOP_DESC= Send error popups to stderr
BDB_DESC= Tiger Map Caching using Berkeley DB
OPTIONS_DEFAULT= SHAPELIB DBFAWK MAGICK CURL RTREE BDB
SHAPELIB_LIB_DEPENDS= libshp.so:devel/shapelib
SHAPELIB_CONFIGURE_WITH= shapelib
MAGICK_LIB_DEPENDS= libGraphicsMagickWand.so:graphics/GraphicsMagick
MAGICK_CONFIGURE_WITH= imagemagick graphicsmagick
DBFAWK_LIB_DEPENDS= libpcre.so:devel/pcre
DBFAWK_CONFIGURE_WITH= dbfawk
CURL_LIB_DEPENDS= libcurl.so:ftp/curl
GEOTIFF_LIB_DEPENDS= libgeotiff.so:graphics/libgeotiff
GDAL_LIB_DEPENDS= libgdal.so:graphics/gdal
GDAL_CONFIGURE_WITH= gdal
GPSMAN_BUILD_DEPENDS= ${LOCALBASE}/share/doc/gpsmanshp/GPSManSHP.pdf:graphics/gpsmanshp
GPSMAN_IMPLIES= SHAPELIB
GPSMAN_CONFIGURE_WITH= gpsman
FESTIVAL_BUILD_DEPENDS= festival:audio/festival
FESTIVAL_CONFIGURE_WITH=festival
RTREE_CONFIGURE_WITH= rtree
ERRORPOP_CONFIGURE_WITH= errorpopups
BDB_USES= bdb
BDB_CONFIGURE_ON= --with-bdb-incdir=${BDB_INCLUDE_DIR} --with-bdb-libdir=${BDB_LIB_DIR}
.include <bsd.port.mk>