Bug 229801 - [NEW PORT]: graphics/gimp-dds-plugin: Direct Draw Surface plugin
Summary: [NEW PORT]: graphics/gimp-dds-plugin: Direct Draw Surface plugin
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Tobias Kortkamp
URL:
Keywords: needs-patch, needs-qa
Depends on:
Blocks:
 
Reported: 2018-07-16 11:05 UTC by Roberto Fernandez Cueto
Modified: 2019-03-13 12:38 UTC (History)
2 users (show)

See Also:


Attachments
Initial patch for graphics/gimp-dds-plugin (3.66 KB, patch)
2018-07-16 11:05 UTC, Roberto Fernandez Cueto
no flags Details | Diff
Update of the patch (3.75 KB, patch)
2018-08-28 10:41 UTC, Roberto Fernandez Cueto
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Roberto Fernandez Cueto 2018-07-16 11:05:45 UTC
Created attachment 195170 [details]
Initial patch for graphics/gimp-dds-plugin

Import the Direct Draw Surface plugin for gimp so .dds files can be opened and exported as .dds
Comment 1 Nathan 2018-08-25 20:22:28 UTC
Since this port uses gcc, need to add:
BROKEN_mips=   GCC not available for mips
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2018-08-26 02:45:09 UTC
(In reply to Nathan from comment #1)

Preferably done as something like

NOT_FOR_ARCHS= mips mips64
NOT_FOR_ARCHS_REASON= recent gcc not available for this arch
Comment 3 Roberto Fernandez Cueto 2018-08-28 10:41:18 UTC
Created attachment 196635 [details]
Update of the patch

Overwriting the previous patch with the one including the changes suggested by the community.
Comment 4 Tobias Kortkamp freebsd_committer freebsd_triage 2019-02-27 10:03:29 UTC
+MASTER_SITES=	https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/gimp-dds/

I don't like the idea of adding a new port that relies on a Google
Code archive.  This suggests that there is no active upstream.

Skimming [1] suggests that the GIMP developers have added a version
of the plugin to their repository [2].  So I think the proper way to
get this is to wait until there is a GIMP release that has it.

Ignoring all of that the port as submitted does not build in Poudriere:
===>  Building for gimp-dds-plugin-3.0.1
gmake[1]: Entering directory '/wrkdirs/usr/ports/graphics/gimp-dds-plugin/work/gimp-dds-3.0.1'
gmake[1]: pkg-config: Command not found
gmake[1]: pkg-config: Command not found
gmake[1]: pkg-config: Command not found
[CC]\tcolor.c
gmake[1]: pkg-config: Command not found
gmake[1]: pkg-config: Command not found
gmake[1]: pkg-config: Command not found
[CC]\tdds.c
dds.c:27:10: fatal error: gtk/gtk.h: No such file or directory
 #include <gtk/gtk.h>
          ^~~~~~~~~~~
compilation terminated.

+BUILD_DEPENDS=	gcc:lang/gcc \

Have you tried with

BINARY_ALIAS=	gcc=${CC}
USE_GCC=	yes

instead?

[1] https://gitlab.gnome.org/GNOME/gimp/issues/1023
[2] https://gitlab.gnome.org/GNOME/gimp/tree/master/plug-ins/file-dds